Snooze: just move the date forward. Stop: delete the followup date.
Brent Davis 13 months ago
Thanks. That is how I stopped it but just thought there might be a more elegant way and I wanted to keep the follow up date in my database to refer back to. Could you have a yes/no field such as CallBackCompleted and once checked it stops the timer event?
You can do anything you want. :) That sounds like a good solution. Personally, for myself, once the followup is done, I delete the date because I'll make a SECOND contact record that has the notes from that followup.
Brent Davis 13 months ago
That is what I have done as well. I like the idea of having the yes/no field but I cannot figure out the code to make the timer event stop!! I tried to add it to the if then statement in the vba code but could not figure it out.
How could you do something similar with a popup when there is no activity in the database say for 30 min to popup a box that says the database will close in 10 seconds if you don't click cancel. if there is activity happening in the database the timer continuously resets and you never get the popup as long as their is activity happening. I would like for databases to shut down if they are not being used.
Scott Axton 8 months ago
Brent you could just put an event in your forms or buttons etc. that would indicate activity.
Change a global variable or set a temp var like "LastUsed = Now()" for instance.
Then put that criteria into your timer event code.
Then the timer would occur if TimeElapsed - LastUsed >= 32 minutes issue a DoCmd.Quit
If they acknowledge the popup reset LastUsed
You would want to do some error checking.
Like what if a report is running or long query?
What if a record is in the middle of being edited? Do you save it or undo it?
Brent Rinehart 8 months ago
Thank You Scott I will give that a try and see how it works.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.