C
clueless_steve
I am trying to extract the month out of the date stored in a field called
AppointmentDate using the DatePart function. The table I am doing this in is
called AppointmentTbl. The field I am extracting it to is called
AppointmentMonth, so I am putting the following in the default value option
of AppointmentMonth:
DatePart("m",[AppointmentDate])
but when I save get the error message "The database engine does not
recognize either the field "AppointmentDate" in a validation expression, or
the default value in the table "AppointmentTbl"."
After I got this message I changed the expression so I put Now() instead of
[AppointmentDate] and the table saved ok. So I don't think its a problem with
table or the expression - must be something to do with [AppointmentDate]??? I
have tried shorter field names but this hasn't worked either.
I am using Access 2002.
Any help greatfully received.
Thanks
AppointmentDate using the DatePart function. The table I am doing this in is
called AppointmentTbl. The field I am extracting it to is called
AppointmentMonth, so I am putting the following in the default value option
of AppointmentMonth:
DatePart("m",[AppointmentDate])
but when I save get the error message "The database engine does not
recognize either the field "AppointmentDate" in a validation expression, or
the default value in the table "AppointmentTbl"."
After I got this message I changed the expression so I put Now() instead of
[AppointmentDate] and the table saved ok. So I don't think its a problem with
table or the expression - must be something to do with [AppointmentDate]??? I
have tried shorter field names but this hasn't worked either.
I am using Access 2002.
Any help greatfully received.
Thanks