Access Flag a date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to have access flag me if a date I enter is outside a specific
date range.
 
I would like to have access flag me if a date I enter is outside a specific
date range.

You can code the BeforeUpdate event of the Date control on your form:

If Me![DateFuield] < #1/1/2000# Or Me![DateField] > Date then
MsgBox "Entered date must be between 1/1/2000 and today's date."
Cancel = True
End If
 

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

Back
Top