access calendar help

  • Thread starter Thread starter Clay Forbes
  • Start date Start date
C

Clay Forbes

I have two calendars on my form. How can i make it so that when the
user clicks a command button it checks to see if the first calendar
date is greater than the second?
 
Put the following code in the Click event of the button:

If Me!NameOfFirstCalendarControl.Value > Me!NameOfFirstCalendarControl.Value
Then
MsgBox "First Date Is Greater Than Second Date"
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