B
bymarce
I have a form on which I want users to be warned if they try to chane a
record that was entered befor today. I wrote the following code and it works
but gives the error "Property Not Found" when no is clicked in the message
box. What's wrong? Thanks.
Marcie
Private Sub Program_BeforeUpdate
If DOC < Date Then
Dim Answer As Integer
Answer = MsgBox("Are you sure you want to change this value? ",
vbYesNo, "MLOBook Edit")
If Answer = vbNo Then
Me.Undo
End If
End If
record that was entered befor today. I wrote the following code and it works
but gives the error "Property Not Found" when no is clicked in the message
box. What's wrong? Thanks.
Marcie
Private Sub Program_BeforeUpdate
If DOC < Date Then
Dim Answer As Integer
Answer = MsgBox("Are you sure you want to change this value? ",
vbYesNo, "MLOBook Edit")
If Answer = vbNo Then
Me.Undo
End If
End If