View Full Version : Calendar date verification


ian_ok
12-10-2001, 10:25 AM
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

Jack Cowley
12-10-2001, 10:39 AM
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