Query A that gives nothing more than the row count of Table A based on certain criteria ( where Column A is NULL). When you open Query A, you get a result set comprising only a single number – one row, one column.
A report that needs to show the result of Query A (that selfsame single number).
…
Can this be done? I’ve been striking out all afternoon. Getting a working Query A is easy – making the result of Query A show up in a report has proven impossible so far.
I understand about Bound and Unbound boxes in Access reports, and how to set Data Control Source of a text box. All the obvious methods of doing this are failing.
Did you try the wizard? All you have to do is start a report and base it on that query via the wizard drop-down box. If it is taking you more than 30 seconds, you may have gone down the wrong path.
Probably going to end up making a table out of all those row counts, then reporting from that.
You don’t happen to know how to add in a “dummy column” to a query in Access, do you? So that a column appears in the query result set that doesn’t appear in the query?
Not sure I follow that. It is a little Douglas Adams-ish. You can add anything you want to a query. Just name the column (or let it give you an Expr1 type name. And just put a calculation or even hard text like “FAKE” to appear.
I am serious when I say that you can probably query striaght from the boxes. I will try it in a second.
It looks like subreports are the easiest way to do what you ant even if there are 14 of them. Just use the subreport tool to drop and drop it in the report and then follow the wizard to link it to a query. You have to play around with the properties a lot to get it to look right.
You could do a bunch of union queries to get that into something manageable if you want all the results in a list. That would only require one report or a report and a subreport/