G
Guest
I have a combo box on a form called QuotationNumberQuery where the user
selects a reference number from the list and a button is pressed which then
displays the quoation they selected in a nice report.
I want a msg box to appear if the button is clicked when no quotation is
selected, the following code makes sense to me but does not seem to do the
job, can someone correct my code for me?
If Me.QuotationNumberQuery = Null Then
MsgBox "Get this quotation approved before you print it."
Exit Sub
End If
selects a reference number from the list and a button is pressed which then
displays the quoation they selected in a nice report.
I want a msg box to appear if the button is clicked when no quotation is
selected, the following code makes sense to me but does not seem to do the
job, can someone correct my code for me?
If Me.QuotationNumberQuery = Null Then
MsgBox "Get this quotation approved before you print it."
Exit Sub
End If