Hi Everyone.
i've been asked to update our call answering screen at work. there are a couple of combo boxes that need to be filled in for every call that our operators sometimes miss. i've tried to rectify this by putting an if statement in the form close event like this.
my problem now is that when you click okay on the first message box, the form closes anyway. is there something i can put in there to stop it closing? i've read about e.cancel = true but i get an error when i put that line of code in. any help will be greatly appreciated.
thanks
Wayne
i've been asked to update our call answering screen at work. there are a couple of combo boxes that need to be filled in for every call that our operators sometimes miss. i've tried to rectify this by putting an if statement in the form close event like this.
Code:
If IsNull(cbo_actiontaken) Then
MsgBox "What Action Was Taken As A Result Of This Call?"
Exit Sub
End If
If IsNull(cbo_operator) Then
MsgBox "Enter Your Initials. They Should Have Been Input On The Front Screen!"
Exit Sub
End If
my problem now is that when you click okay on the first message box, the form closes anyway. is there something i can put in there to stop it closing? i've read about e.cancel = true but i get an error when i put that line of code in. any help will be greatly appreciated.
thanks
Wayne