User Logging 
Author Message
 User Logging

A bit of a long shot, but does anyone have any code that
will log the name of a user (by NT login details), date
and time, to appropriatly names fields in a table called
Log, whenever anyone accesses my database?


Fri, 15 Jul 2005 07:53:58 GMT  
 User Logging
If you really mean "access", as in link to it from another database and
retrieve data from it, then no, there's no way.

If, on the other hand, you want to log who opens your database, you can
create a routine that runs when the database is opened and log the
information yourself. There's code at
http://www.mvps.org/access/api/api0008.htm at "The Access Web" to retrieve
the NT login ID. Date and time is the Now() function.

Check http://www.mvps.org/access/general/gen0040.htm for how to secure your
database so that they can't just hold down the Shift key and open it without
the startup code running.

This isn't fool-proof by any stretch of the imagination, but it may provide
what you're after.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


Quote:
> A bit of a long shot, but does anyone have any code that
> will log the name of a user (by NT login details), date
> and time, to appropriatly names fields in a table called
> Log, whenever anyone accesses my database?



Fri, 15 Jul 2005 06:31:42 GMT  
 User Logging
Thanks Douglas, thats exactly what I wanted,
Quote:
>-----Original Message-----
>If you really mean "access", as in link to it from

another database and
Quote:
>retrieve data from it, then no, there's no way.

>If, on the other hand, you want to log who opens your
database, you can
>create a routine that runs when the database is opened
and log the
>information yourself. There's code at
>http://www.mvps.org/access/api/api0008.htm at "The

Access Web" to retrieve
Quote:
>the NT login ID. Date and time is the Now() function.

>Check http://www.mvps.org/access/general/gen0040.htm for
how to secure your
>database so that they can't just hold down the Shift key
and open it without
>the startup code running.

>This isn't fool-proof by any stretch of the imagination,
but it may provide
>what you're after.

>--
>Doug Steele, Microsoft Access MVP
>http://I.Am/DougSteele


message

>> A bit of a long shot, but does anyone have any code
that
>> will log the name of a user (by NT login details), date
>> and time, to appropriatly names fields in a table
called
>> Log, whenever anyone accesses my database?

>.



Fri, 15 Jul 2005 10:04:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Recording a User Log-In

2. Show users logged on

3. ID of current user logged in

4. Sharing Violation when another user logs in!

5. Check whether another user logged on

6. Showing Message When No User Logged On?

7. Get Current Id Of User Logged Into Network

8. Closing Access DB with users logged in

9. Users logged into a MDB database

10. detect user logged in under winNT/2000

11. Obtaining User logged on at Remote NT box

12. User logged on?

 

 
Powered by phpBB® Forum Software