Guest_imported
New member
- Jan 1, 1970
- 0
I want to set the default value of a field to the value of the last entry. For example, after moving to a new record, the default value of a date field would be what ever the value is of the last date entered.
The variable name is vDate and the field name is Date. The syntax that I used was:
Forms![Accident Data]!Date.DefaultValue = vDate
1. Is the syntax correct.
2. What module should contain the above line (Before Update, After Update, After Insert, all of the above)???
I'm sure that the answer is a simple one for an experienced Access Programmer (which I'm not).
The variable name is vDate and the field name is Date. The syntax that I used was:
Forms![Accident Data]!Date.DefaultValue = vDate
1. Is the syntax correct.
2. What module should contain the above line (Before Update, After Update, After Insert, all of the above)???
I'm sure that the answer is a simple one for an experienced Access Programmer (which I'm not).