Hopefully a quickie? :)

Coatezy

Registered User.
Local time
Yesterday, 16:38
Joined
Jan 8, 2009
Messages
39
I am trying to do a simple if statement (well probably simple for you guys) but im having a few difficulties.
I want to check after update field

If its after 16:30 and today’s date has been entered then display a msg box..

If before 16:30 and today’s date then no action and the same for if after 16:30 and a future date is entered..

So kind of along the lines of

If “time” >=16:30 & me.collectiondate = “todays date” then msgbox ”error message” end if

Any ideas guys?

Tom
 
Last edited:
Code:
If time <#16:00:00# AND me.collectiondate = Date Then
  msgbox "Error"
end if
 

Users who are viewing this thread

Back
Top Bottom