T
Tony Williams
I have an If statement that checks if the user has entered a new record.
Here is my code
If Me.NewRecord Then
If vbYes = MsgBox("Do you want to save any changes you have made to this
record?", 36, "Enter New Record") Then
DoCmd.Requery "Docnumtxt"
DoCmd.RunCommand acCmdSaveRecord
Else
Me.Undo
Cancel = True
End If
End If
End If
DoCmd.Close
End If
How do I use the Else statement to check if it isn't a new record?
Thanks IA
Tony Williams
Here is my code
If Me.NewRecord Then
If vbYes = MsgBox("Do you want to save any changes you have made to this
record?", 36, "Enter New Record") Then
DoCmd.Requery "Docnumtxt"
DoCmd.RunCommand acCmdSaveRecord
Else
Me.Undo
Cancel = True
End If
End If
End If
DoCmd.Close
End If
How do I use the Else statement to check if it isn't a new record?
Thanks IA
Tony Williams