I am using a2007 (sometimes2003)
I would like a form to not be allowed to close if a certain condition exists.
I tried:
Private Sub Form_Unload(Cancel As Integer) If alpha>beta then
msgbox "Message---etc"
cancel =true
End Sub
This works, but I always get the message "No current record 3021". I have looked and looked, but this error seems to be more connected to queries than what I am doing.
Any help much appreciated.