KCi said:
Hi, (First Time Poster) I am wondering if it is possible to monitor and log
the amount time users are in a particular database? The users currently log
their own time in and out of the database, and we are looking for something a
bit more concrete. Next would be is it possible to create a Weekly/Monthly
report from this log?
Like almost everything else in MS' programs, there are several ways to do
it,
with varying degrees of complexity.
One way you could try would be to create a Log table, that would have fields
for the informations you want to log.
When the database is opened, an AutoExec file could create a new record for
that
table. Get the close time might be a little trickier, depending upon how
your users
use the database. If they open to a main form, and close the mainform when
the
database is closed, you can put an OnClose event on the form that adds the
LogOut
time to the Log table.
It's not all that common for just one form to be opened only when the users
open the
db, and close only when, and always when, the users close the db. More
commonly,
you have to allow for more flexibility.
One way is to create a form that opens invisibly, and closes when the
database closes,
and you can add the LogOut information to the OnClose event of that hidden
form.
You may have to talk to the users and find out how they are using the
database, to
get the correct level of complexity in your program.