J
jnew
Sorry about previous post. I hit Enter too quickly.
I have a subform based on a table with a "Deleted" field (data type:
Boolean). The underlying query criteria is Deleted=0.
I am trying to use the Delete event to set the "Deleted" field value to -1
and requery the form to subsequently hide the revised record. The requery
action fails, however.
Here is the code:
Private Sub Form_Delete(Cancel As Integer)
Cancel = True
Me.Deleted = -1
Me.DateDeleted = Now()
Me.Requery
End Sub
Any guidance will be greatly appreciated.
I have a subform based on a table with a "Deleted" field (data type:
Boolean). The underlying query criteria is Deleted=0.
I am trying to use the Delete event to set the "Deleted" field value to -1
and requery the form to subsequently hide the revised record. The requery
action fails, however.
Here is the code:
Private Sub Form_Delete(Cancel As Integer)
Cancel = True
Me.Deleted = -1
Me.DateDeleted = Now()
Me.Requery
End Sub
Any guidance will be greatly appreciated.