users track

G

Gerald

I have 3 users using dbase from network

One text field, I can populate the name of the user in text field by using
=fOSUserName()

but how can I save the name of user who has accessed the record


Thanks
 
R

Rob Oldfield

Depends what you mean by 'accessed'. It's a case of matching the event you
want to trace with what you require. If, for example, you wanted to check
who the last person to view the record was then you could use the form's
Current event, if the last to edit then one of the update events.

Provide some more detail (in a new thread, what exactly do you want to do)
and I'm sure we could come up with an answer.
 
G

Gerald

I want to know who entered the record, by using =fOSUserName(), I can see the
username from the respective computer but from other computer I can see other
user's name.. Somehow I have to save the username who enters the record

appreciate if you could help me

Many thanks
 
R

Rob Oldfield

In that case you need to trap the action of a user actually entering a new
record and set the value at that point. The exact method will depend
on how new records are added but one way would be to have a text box on the
form bound to the field that you want to populate and code like...

me.UserNameTextBoxName=fosusername()

in the after insert event of the form.
 
G

Gerald

Thanks, Rob.

Much appreciated

Rob Oldfield said:
In that case you need to trap the action of a user actually entering a new
record and set the value at that point. The exact method will depend
on how new records are added but one way would be to have a text box on the
form bound to the field that you want to populate and code like...

me.UserNameTextBoxName=fosusername()

in the after insert event of the form.
 

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