Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2006, 11:06 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to khronikles
Default rtrim, ltrim and len

Hi All,


Nothing to do with the web.

I am producing a simple data entry form. A column is supposed to take in 9 digits from scan reading students ID cards and storing it.

e.g., if a student ID card contains B000067465-X, I want it to be able to knock off the initial B and the last two digits -X leaving just 9 numeric characters 000067465.

Can this be done at the rule validation table creation level or not. If possible, how?


This would just save me eventually writing VB codes.

Thanks

khronikes

 
Old June 5th, 2006, 03:31 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Not, I'm afraid.

Validation only responds to a true or false condition, and the only responses are nothing, or squawk about it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
rtrim or substring? Help bachuss SQL Server 2000 3 March 1st, 2006 01:05 PM
How to return a string to it's exact original (len EDCH123 Java Databases 0 January 25th, 2006 04:06 PM
difference in the codwithout ltrim and right trim shoakat Classic ASP Databases 2 October 30th, 2004 01:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.