GKChesterton
Programmer
I want to modify my report using VBA, based on a value found in the underlying query. The value is not one I wish to appear on the report. How do I get to the value?
I know a few ways to do this:
(a) use the field in a control on the report and make it invisible;
(b) make a DAO recordset clone and get the value from there; or
(c) use a domain aggregate query to get the value.
Ain't there a better way? It's the same for forms. I've always settled for solution (a), but am believing for something more elegant.
(I hope that's enough information. I bet the solution is very simple and obvious. And I bet if I just new the right search term, the Tek-Tips answer would have appeared in one minute.)
I know a few ways to do this:
(a) use the field in a control on the report and make it invisible;
(b) make a DAO recordset clone and get the value from there; or
(c) use a domain aggregate query to get the value.
Ain't there a better way? It's the same for forms. I've always settled for solution (a), but am believing for something more elegant.
(I hope that's enough information. I bet the solution is very simple and obvious. And I bet if I just new the right search term, the Tek-Tips answer would have appeared in one minute.)
[purple]If we knew what it was we were doing, it would not be called
research [blue]database[white].[/white]development[/blue], would it? [tab]-- Albert Einstein[/purple]