S
steve
I have the following very simple code in a BeforeUpdate Event
Procedure
Private Sub Date1_BeforeUpdate(Cancel As Integer)
Me!Date1 = Date
End Sub
I just want it to put the date in the field when someone changes the
data in the form.
However when I run it I get the following error. ( and no date
inserted into the field)
Run-time Error '2115'
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing the Employee Database v1 from
saving the data in the field.
I have searched for an answer to this and it seems people say that its
due to to the field being set in the table to "Allow Zero Length" No
But I have simply used the default settings that access sets up which
is Yes. The field is a text field but when I set it up to date field
it doesnt help. Can anyone point me to what I dont understand about
this.
Thanks.
Procedure
Private Sub Date1_BeforeUpdate(Cancel As Integer)
Me!Date1 = Date
End Sub
I just want it to put the date in the field when someone changes the
data in the form.
However when I run it I get the following error. ( and no date
inserted into the field)
Run-time Error '2115'
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing the Employee Database v1 from
saving the data in the field.
I have searched for an answer to this and it seems people say that its
due to to the field being set in the table to "Allow Zero Length" No
But I have simply used the default settings that access sets up which
is Yes. The field is a text field but when I set it up to date field
it doesnt help. Can anyone point me to what I dont understand about
this.
Thanks.