Date Validation

P

Paul

How, with VC coding, would I create validation for a date
field where a past date would not be able to be entered.

I thought something like if Me![datefield] < Date()

Any help would be greatly appreciated.

Paul
 
J

Jim Allensworth

How, with VC coding, would I create validation for a date
field where a past date would not be able to be entered.

I thought something like if Me![datefield] < Date()

Any help would be greatly appreciated.

Paul

In the Validation Rule Property of the textbox put...
">=Date()" (without the quotes).

In the Validation Text Property put something to inform the user
like...

"Dates must be today or later." (no quotes)

- Jim
 

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