error message macro

slcollie

Registered User.
Local time
Today, 11:11
Joined
Jun 6, 2000
Messages
20
Here is my macro which occurs under the close form property of my form.

condition: if [forms]![customer]![name] is not null
Action: StopAllMacros

condition: 6<>msgbox("This record will not save. Close form anyway?",36)
Action:CancelEvent

What I wanted it to do was close the form when the user choose YES, but form closes even if no is pressed.

Please help.
 

Users who are viewing this thread

Back
Top Bottom