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
 

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

Top