|
I can't remember, but you should be able to get rid of the X method to close a form.
Once you get rid of it, put a button specific to closing the form, and put necessary code to check if its NULL.
Not sure if it works in Access, but also try to create a procedure called
Public Sub FormName_Unload(cancel as integer)
If input = blank then
cancel = 1
end if
End Sub
If its like VB, this method will be called as the form closes.
If its set to cancel = 1 it will cancel the unload, you can then also include necessary error handling.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
|