B
beachffl
I have a database that works completely fine in Access XP, but when ran
on the newer version of Access 2003 I get the following error... has
anyone seen this before?
******************
Run-time error '2115':
The macro or function set to the BeforeUpdate or ValidationRule
property for
this field is preventing Microsoft Office Access from saving the data
in the
field.
********************************************************
Here is the code behind the error.
Private Sub Gate2_BeforeUpdate(Cancel As Integer)
Dim strSQL As String
'clear all other gate 2 markers before the update
strSQL = "UPDATE tdChange SET Gate2=0 WHERE PartID=" &
intCurrentPartID & " AND ChangeID<>" & intCurrentChangeID & ";"
DoCmd.SetWarnings (0)
DoCmd.RunSQL strSQL
DoCmd.SetWarnings (1)
Refresh
End Sub
on the newer version of Access 2003 I get the following error... has
anyone seen this before?
******************
Run-time error '2115':
The macro or function set to the BeforeUpdate or ValidationRule
property for
this field is preventing Microsoft Office Access from saving the data
in the
field.
********************************************************
Here is the code behind the error.
Private Sub Gate2_BeforeUpdate(Cancel As Integer)
Dim strSQL As String
'clear all other gate 2 markers before the update
strSQL = "UPDATE tdChange SET Gate2=0 WHERE PartID=" &
intCurrentPartID & " AND ChangeID<>" & intCurrentChangeID & ";"
DoCmd.SetWarnings (0)
DoCmd.RunSQL strSQL
DoCmd.SetWarnings (1)
Refresh
End Sub