Calendar date verification

ian_ok

Registered User.
Local time
Today, 23:22
Joined
May 1, 2001
Messages
90
I have a calendar on my form, yet I want to ensure no date before todays date is entered.

How is the best way to ensure the date is correct?

=>date()

doesn't seem to work, do I need some code in onopdate or on current?

Ian
 
Assuming your Calender is named Calendar then in the On Click event this should work:

If Me.Calendar.Value >= Date Then
Msgbox "Your message"
Exit Sub
End if
 

Users who are viewing this thread

Back
Top Bottom