Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 11th, 2006, 11:06 AM
Registered User
Join Date: May 2006
Location: London, London, United Kingdom.
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.



Reply With Quote
  #2 (permalink)  
Old June 5th, 2006, 03:31 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

Not, I'm afraid.

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:20 AM.

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