Validation Rules and Validation Expressions

D

DrNoose

I'm working on a program using vb in Visual Studios 2005 where I need to
validate a couple of text boxes. One is for a credit card. Most credit
cards have 16 digits and that's what I'd like to set the validation to.
If the user enters less than 16 or more than 16 numbers, they will
receive an error. I think I need to use the Range Validator, but not
sure. If so, what should I set my max and min to?

The other text box is for expiration date. I want the user to enter a
date as mm/dd/yy - ie. 09/09/09. I'm not sure what the regular
expression code should be. I can't find it in any of my books and
haven't really seen anything online that helps. What I have is:
\d{2}-\d{2}-\d{2}, but that's not working.

Any help is appreciated!

Thanks!
 
D

Douglas J. Steele

If you're using VB.Net, you'd be much better off posting to a newsgroup
related to that product, such as microsoft.public.dotnet.languages.vb.

This newsgroup is for questions about coding modules in Access, the database
product that's part of Office Professional. Access uses VBA, which is a bit
different than VB.Net
 
D

DrNoose

Douglas said:
If you're using VB.Net, you'd be much better off posting to a newsgroup
related to that product, such as microsoft.public.dotnet.languages.vb.

This newsgroup is for questions about coding modules in Access, the database
product that's part of Office Professional. Access uses VBA, which is a bit
different than VB.Net
Thanks!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top