Time function

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

Guest

I have the following code:
![datTime] = Time
if ![datTime] > Time(11,0,0) then..........
It gives me a type mismatch. I'm trying to ask if the current time is
greater than 11:00 then.... How do I do this correctly?

Nick
 
If ![datTime] > #11:00:00 AM# Then

The # signs are date/time delimiters, just as you would use quotes to
delimit a string.
 
Back
Top