T
Tony Girgenti
When i run the following code in the after update event for a check box, i
get:
"Run-time error '2115' the macro or function set to the BeforeUpdate or
ValidationRule property for this field is prventing Microsoft Access from
saving the data in the field" on the second line of this code.
If i click END, it goes back to the form with the combobox field filled in
with "First".
How can i change a combo box's text when i check a check box next to it ?
Any help appreciated.
Thanks,
Tony
If Me.StrItmChk = True Then
Me.StrItm.SetFocus
Me.StrItm.Text = """First"""
Me.StrItm.Enabled = False
Me.StrItmChk.SetFocus
StartItem = Hex(0)
Else
Me.StrItm.SetFocus
Me.StrItm.Text = ""
StartItem = Hex(255)
Me.StrItm.Enabled = True
End If
get:
"Run-time error '2115' the macro or function set to the BeforeUpdate or
ValidationRule property for this field is prventing Microsoft Access from
saving the data in the field" on the second line of this code.
If i click END, it goes back to the form with the combobox field filled in
with "First".
How can i change a combo box's text when i check a check box next to it ?
Any help appreciated.
Thanks,
Tony
If Me.StrItmChk = True Then
Me.StrItm.SetFocus
Me.StrItm.Text = """First"""
Me.StrItm.Enabled = False
Me.StrItmChk.SetFocus
StartItem = Hex(0)
Else
Me.StrItm.SetFocus
Me.StrItm.Text = ""
StartItem = Hex(255)
Me.StrItm.Enabled = True
End If