Use the Current Time as a condition

K

Kevbro7189

I would like to use a Micro to back up my data when the program is closed.
However I only want the back up to run only if the current time is after 6pm.
How do I phrase my condition?
 
C

Clifford Bass

Hi,

Try Time() > #6:00 PM#

But you may want to consider what happens when someone has to go back
in and close again, maybe mutliple times, after 6:00 pm. So you may want to
record somehow whether or not the backup has already run.

Clifford Bass
 
Top