I want the login name that somebody enters when starting the database to be
set as a variable.
I'll try to explain:
I have a table (Engineer) that lists engineers (they are the users)
The relevant fields are
Engineer.Name
Engineer.Code (where the login in the database is the Engineer.Code)
I have a table (Hours) that lists the hours that they worked
The relevant field here is
Hours.Name
I made a query on the table Hours that is called Hours Query
On the field
Hours Query.Engineer
I set the criterium
[Which engineer?]
What I want to do is create a variable "CurrentUser" that, instead of asking
to type in the engineer name fills the current user name in instead of
asking the question [Which Engineer?].
Can I do this and how?
TIA
Henro