Please Help - Setting Value of Field When Data Changes

A

Anonymous

Please help. This should be simple but I'm having a lot of issues. Very
simple form with single table driving it. I have a text box called
"TrackingNum" that is tied to a field in the table which is also called
"TrackingNum". I have another text box on the form called "DateEntered".
It is tied to a field in the table called "DateEntered".

I'd like the value in DateEntered to automatically be populated with the
current date whenever the user adds something or edits information in the
TrackingNum box. I set the "AfterUpdate" property of TrackingNum to do the
following:

DateEntered=Date

However, I keep getting errors. Can you please help?

Many thanks!
 
J

John Vinson

Please help. This should be simple but I'm having a lot of issues. Very
simple form with single table driving it. I have a text box called
"TrackingNum" that is tied to a field in the table which is also called
"TrackingNum". I have another text box on the form called "DateEntered".
It is tied to a field in the table called "DateEntered".

I'd like the value in DateEntered to automatically be populated with the
current date whenever the user adds something or edits information in the
TrackingNum box. I set the "AfterUpdate" property of TrackingNum to do the
following:

DateEntered=Date

That's not the way to do it. The value in the AfterUpdate property
needs to be either the name of a Macro, [Event Procedure] to call VBA
code, or a call to a function =MyFunc().

Instead, set the textbox's DefaultValue property to Date().

John W. Vinson[MVP]
 

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