S
Sam
In a control's beforeUpdate event I have the following code:
Public Sub PartyIDTo_BeforeUpdate(Cancel As Integer)
On Error GoTo Error_Handler
'if user is selecting a new party for a fax
'previously sent, chances are they are trying
'to send a new fax
If Nz(Me.ContactStatusID, 0) = gcSent Then
If MsgBox("New Fax? ", vbYesNo) = vbYes Then
NewContactParty
Else
MsgBox "This Fax has been sent and" & _
" cannot be edited."
Cancel = True
Me!PartyIDTo.Undo
End If
End If
The problem is that in the "Else" clause, this code does not role back the
value the user entered. The control is unbound. Why is the undo not working?
Thanks so much.
Sam
Public Sub PartyIDTo_BeforeUpdate(Cancel As Integer)
On Error GoTo Error_Handler
'if user is selecting a new party for a fax
'previously sent, chances are they are trying
'to send a new fax
If Nz(Me.ContactStatusID, 0) = gcSent Then
If MsgBox("New Fax? ", vbYesNo) = vbYes Then
NewContactParty
Else
MsgBox "This Fax has been sent and" & _
" cannot be edited."
Cancel = True
Me!PartyIDTo.Undo
End If
End If
The problem is that in the "Else" clause, this code does not role back the
value the user entered. The control is unbound. Why is the undo not working?
Thanks so much.
Sam