Hi All,
I have a form where I do not want the user to be able to close it if the LetterAlert check box has been checked but no details have been added to the LetterAlertDetails memo field.
So I have placed the following code before all of the other code on my close button:
If Me.LetterAlert = -1 And Me.LetterAlertDetails Is Null Then
DoCmd.RunMacro "mcroMissingLetterAlertDetails"
Else
...the rest of my close button code.
This works if I remove previously saved data. So I'm guessing that I am not using Is Null and ="" properly. Does anyone know what I am doing wrong?
Thank you!
I have a form where I do not want the user to be able to close it if the LetterAlert check box has been checked but no details have been added to the LetterAlertDetails memo field.
So I have placed the following code before all of the other code on my close button:
If Me.LetterAlert = -1 And Me.LetterAlertDetails Is Null Then
DoCmd.RunMacro "mcroMissingLetterAlertDetails"
Else
...the rest of my close button code.
This works if I remove previously saved data. So I'm guessing that I am not using Is Null and ="" properly. Does anyone know what I am doing wrong?
Thank you!