Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking users thru a APPEND Query 1

Status
Not open for further replies.

rss01

Technical User
Oct 10, 2001
125
US
I have a database on the network that remote users open through the metaframe. It opens to a switchboard and runs an
AUTOEXEC macro that maximizes the window and runs an append query that appends a record in the USER table for the [USER]= CurrentUser() and the [DATE_TIME]= Now(). My problem is all my users show up as ADMIN. How do I get the users logon name instead of ADMIN.

Any help would be greatly appreciated.
 

CurrentUser() returns the Access login name. You can get the Windows login in a couple of ways. If the Environment variable "Username" has been SET, you can use Environ("username"). The other method involves an API call and is explained in faq181-93. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Thats exactly what I'm looking for. Thanks very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top