G
Guest
I have a parameter query that is invoked from a command button on a form. The
query asks for the description of an item.
Another form then displays each record from the query (I have a command
button that displays the next/previous records in the record set).
This works fine when the query returns records. However, if there are no
records returned, the form is displayed with headings only, because it is
bound to the query.
How can I
a. Display a message box indicating that there is no data to match the query
b. prevent the blank form from being displayed.
I would prefer a solution based on a macro, if possible.
Thanks for any help!
query asks for the description of an item.
Another form then displays each record from the query (I have a command
button that displays the next/previous records in the record set).
This works fine when the query returns records. However, if there are no
records returned, the form is displayed with headings only, because it is
bound to the query.
How can I
a. Display a message box indicating that there is no data to match the query
b. prevent the blank form from being displayed.
I would prefer a solution based on a macro, if possible.
Thanks for any help!