Customer's order entry page has buttons for printing numerous reports, and each button has a smaller button beside it to do a printpreview of the report. They use these little buttons to see if there is no data for that particular report. Is there a way I can test for no data ahead of time and if so either make the little buttons invisible or change their color? I tried testing the query upon which the report is based isnull(queryname) but it tells me it is not available for automation (makes sense), but I haven't come up with any other ideas. This obviously isn't a necessity, but thought it would be a neat bit of code.