Exiting application

S

Shirley

I am strugling here...I created a log activity table to
record the time when users log in and log out. The
application runs well if user click the control button I
built to log out. But some people just click the "X" on
the top right to close the application. In this case, my
application will not be able to record the time when the
user closes the application. how can I resolve this
problem?

Thanks,

Shirley
 
J

John Spencer (MVP)

Create a form and open it hidden.

When the user tries to quit the application, the form must close.

In the form's on close event, run SQL or other VBA code to populate the record
with the desired value(s).
 
K

Kat3n98

Try open the Properties box and choosing "No" at
the 'Close Button' option. This should disable the "X"
option.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top