Recording User on Record

D

Dunner

Hey guys,

I was just wondering, is there any way to assign the name
of the user creating a record to a field on the record?
basically so that anyone can look at a record and know
who created it.

Cheers

Dunners
 
R

Rick B

in the default value for your "created" filed, enter

=CurrentUser()


You need to set the field so tha the user can't change it.

You could also place the userid (and date and time) in a timestamp field on
a record by using some code in the "before insert" property.


Rick B

Hey guys,

I was just wondering, is there any way to assign the name
of the user creating a record to a field on the record?
basically so that anyone can look at a record and know
who created it.

Cheers

Dunners
 
G

Guest

Hi Rick,

I've tried that but it says that =CurrentUser() is an
unknown function and won't let me save it. Any ideas on
what this could be?

Thanks for your help

Dunners
 
R

Rick B

Nope. It works fine on the form I just tested.

Rick B


Hi Rick,

I've tried that but it says that =CurrentUser() is an
unknown function and won't let me save it. Any ideas on
what this could be?

Thanks for your help

Dunners
 
L

Lynn Trapp

If you are trying to do it at the table level it won't work. You'll have to
create an input form for your table and put CurrentUser() in the default
value of the control you need it in.
 
R

Rick B

Oooh good catch Lynn.

I had it in my head that we were in a form, and never considered an
alternative.

Thanks!!!

Rick B

If you are trying to do it at the table level it won't work. You'll have to
create an input form for your table and put CurrentUser() in the default
value of the control you need it in.
 
L

Lynn Trapp

It was the Unknown function message that clued me in. Either he is
attempting to do it at the table level or there is a broken reference
somewhere.
 

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

Top