I am having a slight problem sending the caption of a label to a text box, based on the value of an associated check box.
It puts the value I desire in the text box, but gives me the following error:
Run-time error '2115'
The macro or function set to the BeforeUpdate or ValidationRule for this field is preventing ICU DATABASE (my database name) from saving data in the field.
Here is my code for the check box I am having trouble with(Label37 is the label associated with the checkbox):
Private Sub nosinfec_Click()
If nosinfec.Value = True Then
txtComplications.SetFocus
txtComplications.Text = Label37.Caption
End If
End Sub
It puts the value I desire in the text box, but gives me the following error:
Run-time error '2115'
The macro or function set to the BeforeUpdate or ValidationRule for this field is preventing ICU DATABASE (my database name) from saving data in the field.
Here is my code for the check box I am having trouble with(Label37 is the label associated with the checkbox):
Private Sub nosinfec_Click()
If nosinfec.Value = True Then
txtComplications.SetFocus
txtComplications.Text = Label37.Caption
End If
End Sub