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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log/Track Changes Made by Users to Tables 1

Status
Not open for further replies.

duhu

Technical User
Feb 3, 2009
5
GB
Hi guys, first of all see my previous post:

Would someone be able to tell me how I can have the username in the "tbl_loginLOG" also entered into a field called "UserEnt" in a form called "frm_history".
This form is used to record the movement of laptops in and out of a cupboard and i would like the name of users who input entries in the history table also shown. At the moment the form has the "Information, Date & Time" fields displayed. I would like to have the username of the most recent logged on user to populate the "UserEnt" field in this form/table.

SEE:
(shows the query from which frm_History is derived, to enter new information)

(shows The history form, click on "Add Note" which opens up frm_History to make a new entry)
 
set UserEnt to CurrentUser? That does not work, is there an error with your syntax perhaps?

Shot in the dark i even tried:
Me.UserEnt = Queries!qry_UserLOG!User

Didn't work too.
 
Me.UserEnt = CurrentUser() 'logged on to database

or

Me.UserEnt = Environ("username") 'network logon name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top