R
Rillo
I have a form based on a query.
In the event that the query does not find any matching records, I want to
inform the user that this is the case.
At the moment all that happens is that a blank form appears.
I want to avoid using code if possible, so I have created a macro as
follows.....
IsNull([Forms]![Enquiry by Loan Expiry Date]![Description]) MsgBox
IsNull([Forms]![Enquiry by Loan Expiry Date]![Description]) Close Form
The intention is that a message box will be displayed to the effect that
there are no matching records and the form will then be closed.
I can't seem to work out into which event on my form I should insert the
macro.
Please advise.
In the event that the query does not find any matching records, I want to
inform the user that this is the case.
At the moment all that happens is that a blank form appears.
I want to avoid using code if possible, so I have created a macro as
follows.....
IsNull([Forms]![Enquiry by Loan Expiry Date]![Description]) MsgBox
IsNull([Forms]![Enquiry by Loan Expiry Date]![Description]) Close Form
The intention is that a message box will be displayed to the effect that
there are no matching records and the form will then be closed.
I can't seem to work out into which event on my form I should insert the
macro.
Please advise.