how to stop a database

bigmac

Registered User.
Local time
Today, 15:35
Joined
Oct 5, 2008
Messages
302
hi all can you help please , I created a database that uses the "lngEmpName " number to give user permissions , what I need is to be able to disable the running of the database (or main form)and show an error message using vba if I have not logged in for around two weeks is this possible ? if so how and even better a demo would be fantastic.
cheers for looking :confused:
 
I would store your last logon time in a local table, then you would need to run an OnTimer event to check every 10 minutes / hour / whatever you need, to check if that time was 2 weeks ago . If it was close the database.
 
hello minty , thanks for you quick response , one question how do I get it to record when I log on and not other users?
 
If you are in a domain environment you can use an environment variable (a quick Google search will get you there)
 

Users who are viewing this thread

Back
Top Bottom