H
Hank Megens
Hello,
In a form I use a combo box to give people a self chosen number
So after giving out a number I don't want to see it anymore in my combobox
when I edit the next record.
So I created the next VBA statement:
Private Sub koppelkasnummer_Beforeupdate(Cancel As Integer)
DoCmd.SetWarnings False
DoCmd.OpenQuery "query1"
Me.Requery
DoCmd.Close , acQuery, "query1"
DoCmd.SetWarnings True
End Sub
but by giving out the first number I get the following error:
- Runtime error '2115'
The macro or function set to the BeforeUpdate or ValidationRule property for
this field is preventing Microsoft Access from saving the data in the field.
Query1 = updating my list, so my other query (on which the combolist is
based will be updated)
How to slove this?
In a form I use a combo box to give people a self chosen number
So after giving out a number I don't want to see it anymore in my combobox
when I edit the next record.
So I created the next VBA statement:
Private Sub koppelkasnummer_Beforeupdate(Cancel As Integer)
DoCmd.SetWarnings False
DoCmd.OpenQuery "query1"
Me.Requery
DoCmd.Close , acQuery, "query1"
DoCmd.SetWarnings True
End Sub
but by giving out the first number I get the following error:
- Runtime error '2115'
The macro or function set to the BeforeUpdate or ValidationRule property for
this field is preventing Microsoft Access from saving the data in the field.
Query1 = updating my list, so my other query (on which the combolist is
based will be updated)
How to slove this?