Thanks. This only works when a user clicks on the button at the specified time doesn’t it? I would like it to run automatically at the specified time.
Is this possible?
Put the above code and your code on a On Timer event procedure of the form's main properties. Set the timer to be 60000 (60 seconds). This will then check the code every 60 seconds (or whatever you choose) and when it equals your selected time it will run.