I am having trouble trying to update just the current record (refer to the Where statement) and I can't find anything to make it work.
I have a Continuous form with a list of records from a table. I'm using the OnClick Event of the checkbox.
Code:
Private Sub bDeleted_Click()If Me.Dirty Then Me.Dirty = False
If Me.bDeleted = True Then
' MsgBox Me.bDeleted.Value
Set db = CurrentDb
db.Execute "Update tblEOS Set tblEOS.[bDeleted] =" & True & _
" where tblEOS.[RequestID] = " & Me.RequestID, dbFailOnError
End If
If Me.bDeleted = False Then
' MsgBox Me.bDeleted.Value
Set db = CurrentDb
db.Execute "Update tblEOS Set tblEOS.[bDeleted] = " & False & _
" where tblEOS.[RequestID] = " & Me.RequestID, dbFailOnError
End If
End Sub