L
Laurel
I want to do some edit checks when the user clicks on the X to close the
form. If they fail, how do I prevent the close from continuing. I see that
I probably need to use the "unload" event instead of the "close" event,
because the help says you can cancel unload. But I don't know how to do the
cancel. I see that it has a parameter "cancel," but I don't see how a
paramter can be used. In peudocode I want to do this when the X is clicked.
If fncCheck <> Success then
<prevent the window from being closed>
end if
There are no "examples" in the help for any events... I also looked around
in Northwind but didn't find anything.
TIA
LAS
form. If they fail, how do I prevent the close from continuing. I see that
I probably need to use the "unload" event instead of the "close" event,
because the help says you can cancel unload. But I don't know how to do the
cancel. I see that it has a parameter "cancel," but I don't see how a
paramter can be used. In peudocode I want to do this when the X is clicked.
If fncCheck <> Success then
<prevent the window from being closed>
end if
There are no "examples" in the help for any events... I also looked around
in Northwind but didn't find anything.
TIA
LAS