E.J.,
The Default Value is not applicable in this case. Default Value
refers to the point when a new record is started, and by the time you
have entered the value in your "First" field, it is too late for the
default value of the "Date" field to be applied. It would be possible
to assign the value of the "Date" field on the After Update event of
the "First" field's control on your form, using a macro or VBA
procedure, e.g.
Me.YourDateField = DateAdd("yyyy",3,Me.YourFirstField)
But before you go down that track, I would expect that what you are
trying to do here is really an invalid purpose. If the value of the
"Date" field will always be 3 years later than the value in the
"First" field, it should not be stored in the database anyway. This
flouts one of the principles of database design. Whenever you need
this date for your purposes on form or report, it should be derived at
the time via a calculated field in a query, or via an expression
within the control source of a textbox on the form or report itself.
- Steve Schapel, Microsoft Access MVP
> I'm trying to create a field that will automatically
>update a "Date", as the result of adding three years to
[quoted text clipped - 4 lines]
>
> Thank you.
E. J. - 15 Jan 2004 21:49 GMT
>-----Original Message-----
>E.J.,
[quoted text clipped - 29 lines]
>.
> "Whenever you need this date for your purposes on
form or report, it should be derived at the time via a
calculated field in a query..."
Thanks, Steve. I'm going to change the timing of this
data retrieval, as you suggested.
Appreciate your help,
E. J.