C
Chaimribs
I'm trying to archive records instead of deleting them by adding a date into
a special field when the delete button is pushed.
This is the code I'm using.
Private Sub Form_Delete(Cancel As Integer)
If MsgBox("Do you want to delete this record?", vbOKCancel) = vbOK Then
Me.Field12 = Now()
End If
Cancel = True
End Sub
This should work except it just ignores the line "Me.Field12 =Now()." Also
there's no error.
What's wrong or is this a bug.
Thanx.
a special field when the delete button is pushed.
This is the code I'm using.
Private Sub Form_Delete(Cancel As Integer)
If MsgBox("Do you want to delete this record?", vbOKCancel) = vbOK Then
Me.Field12 = Now()
End If
Cancel = True
End Sub
This should work except it just ignores the line "Me.Field12 =Now()." Also
there's no error.
What's wrong or is this a bug.
Thanx.