I have a form, on it are two combo boxes, one for the year and one for the division. The user selects the values in each combo box, then clicks a command button that runs a docmd.openquery (the query has criteria that come from the combo box values). This works like a charm.
However, sometimes there are no records for the year and division combination selected and a blank query results is displayed. How can I trap this and instead perhaps display a msgbox saying "No data"?
Karl
However, sometimes there are no records for the year and division combination selected and a blank query results is displayed. How can I trap this and instead perhaps display a msgbox saying "No data"?
Karl