Good morning,
I am using Office 2016 and have several databases that I have used an auto-close method if idle based on this post:
http://www.utteraccess.com/forum/TimeOut-Forceoff-re-edit-t672964.html
When I open these databases, I have a main form and then a Hidden Security form that opens on the "OnOpen" event for the main form.
When the database times out and closes, I get a run time error 2450 MS Access cannot find the referenced form frmSecurity...
I can't seem to figure out how to prevent that error from appearing. I'm thinking it has something to do with the order of events on the forms as the database closes but haven't been able to get it to "resume next" and not appear.
Has anyone else ever come across this and can offer any advice? Much appreciated.
I am using Office 2016 and have several databases that I have used an auto-close method if idle based on this post:
http://www.utteraccess.com/forum/TimeOut-Forceoff-re-edit-t672964.html
When I open these databases, I have a main form and then a Hidden Security form that opens on the "OnOpen" event for the main form.
When the database times out and closes, I get a run time error 2450 MS Access cannot find the referenced form frmSecurity...
I can't seem to figure out how to prevent that error from appearing. I'm thinking it has something to do with the order of events on the forms as the database closes but haven't been able to get it to "resume next" and not appear.
Has anyone else ever come across this and can offer any advice? Much appreciated.