dr223
April 9th, 2009, 05:23 AM
The following code give me an error where it is highlighted red can anyone please tell me why..
I would like to undo the changes if No is clicked.
Dim Cancel As Boolean
If TxtOracleNo.Text <> TextBox6.Text Then
If MsgBox("Do you wish to update oracle number?", vbYesNo) = vbYes Then
Else
Cancel = True
Me.Undo()
MsgBox("The change has been discarded", vbOKOnly)
End If
End If
Thanks
I would like to undo the changes if No is clicked.
Dim Cancel As Boolean
If TxtOracleNo.Text <> TextBox6.Text Then
If MsgBox("Do you wish to update oracle number?", vbYesNo) = vbYes Then
Else
Cancel = True
Me.Undo()
MsgBox("The change has been discarded", vbOKOnly)
End If
End If
Thanks