Hi people,
I have a problem with users sometimes leaves the computer without shutting down the database, and then I have to run around and find out who is logged in and then shut it down manually to be able to save changes to the database.
Now I have made a function where I can send a message to users, and also kick them out of the database, simply by having the main menu running a timer, and then check a table every 5 seconds... and if a sertain value is set it will launch, docmd.quit acSaveAll, now that works until they are working on a record and leaves the database in the middle of entering data.
Is there anyway I can set the forms to cancel the record when it closes?
I tryed to see if the event "unload" could do it, but that one is executed after the "update" event.
I then thought of just setting all the fields on the form to Null, but that was a bad Idea, because if the person has an exeisting record open, that record will be cleared...
so it has to be some kind of function that cancells the form, like if the user pushed the Escape key locally.
Any input is appreciated...
Eldaria
That was my 25cent** of opinion.
** Inclusive Intrest, tax on interest, Genral tax, Enviromental tax, Tax, and tax on intrest, tax on fees, tax on tax, and other Various taxes and fees.
I have a problem with users sometimes leaves the computer without shutting down the database, and then I have to run around and find out who is logged in and then shut it down manually to be able to save changes to the database.
Now I have made a function where I can send a message to users, and also kick them out of the database, simply by having the main menu running a timer, and then check a table every 5 seconds... and if a sertain value is set it will launch, docmd.quit acSaveAll, now that works until they are working on a record and leaves the database in the middle of entering data.
Is there anyway I can set the forms to cancel the record when it closes?
I tryed to see if the event "unload" could do it, but that one is executed after the "update" event.
I then thought of just setting all the fields on the form to Null, but that was a bad Idea, because if the person has an exeisting record open, that record will be cleared...
so it has to be some kind of function that cancells the form, like if the user pushed the Escape key locally.
Any input is appreciated...
Eldaria
That was my 25cent** of opinion.
** Inclusive Intrest, tax on interest, Genral tax, Enviromental tax, Tax, and tax on intrest, tax on fees, tax on tax, and other Various taxes and fees.