Employees

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a secured database in which each employee must login to have access. I
am wondering if there is a way so that when the employee goes to order
another item it will automatically enter their name into the the "Ordered by"
Employee name field?

Thanks
 
Jenn,
EmployeeName = [CurrentUser]
should do it.

Al, shouldn't that be

EmployeeName = CurrentUser()

using the builtin function?

John W. Vinson[MVP]
 
Thank you for your help, just two more questions though. Do I put that in the
form? And what heading do I put it under

John Vinson said:
Jenn,
EmployeeName = [CurrentUser]
should do it.

Al, shouldn't that be

EmployeeName = CurrentUser()

using the builtin function?

John W. Vinson[MVP]
 
Thank you for your help, just two more questions though. Do I put that in the
form? And what heading do I put it under

I'd put it in the DefaultValue property of the form textbox into which
you wish the employee name to be entered.

John W. Vinson[MVP]
 
That's even a better idea...
Al Camp

John Vinson said:
I'd put it in the DefaultValue property of the form textbox into which
you wish the employee name to be entered.

John W. Vinson[MVP]
 
That doesn't seem to work either it doesn't fill in the name. Maybe I just
dont have something set up right. Currently it is pulling the mane from a
able that i created not from the secured list that the login comes from could
that have something to do with it, does my employee name have to come from
that list?
 
Jenn,
Yes... [CurrentUser] refers to Microsoft WorkGroup security. If you sign in via
that... Access then knows the CurrentUser, and that can be used in the application.
Although, I'm a bit surprised that you didn't get "Admin" as the value for CurrentUser.
If there is no MS security attached to the app, it should default to Admin.

--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top