The menu page for my database has a series of buttons, each with a macro which runs a query to find the specific record set the user needs then opens the form to display the records. If there are no records returned then only the form header is being seen – the usual tab control and subforms aren’t there. Is there a way from within the macro that I can test if the query results in no records? If so then I could use a MsgBox to let the user know what’s going on.
Share
In VBA, you can do something on these lines: