Update textbox if user change something

  • Thread starter Thread starter SF
  • Start date Start date
S

SF

Hi,

I have a form consist of several fields include 2 hiden fileds; Owner and
DateUpdate. Is there a way to change the DateUpdate and Owner to Now() and
Currentuser() respectively before moving to the next record if user is
editing the record?

SF
 
SF said:
I have a form consist of several fields include 2 hiden fileds; Owner and
DateUpdate. Is there a way to change the DateUpdate and Owner to Now() and
Currentuser() respectively before moving to the next record if user is
editing the record?


Use the form's BeforeUpdate event:

Me.DateUpdate = Now
Me.Owner = Currentuser
 

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

Table is not updating... 2
When to use .Edit & .Update 11
Help with code 5
Enter date/time into table 2
Change event help 5
help with Code 1
Altering a macro with a macro 3
Help with code 2

Back
Top