R
RD
Hi. I have a new one.
I'd like to list all the queries in a db in a combo box (or list box,
whichever) so I can choose one and then manipulate it
programmatically.
Here's the deal: I'm in a group that produces tons of reports for
various people. Much of the work is done manually. For instance, I
was given an adhoc report request this morning. This one report
involves running eight separate queries with slightly different
criteria. Then exporting them to Excel. Then extracting a random
sampling of each recordset (different size and spec for each sample).
Finally formatting the resulting 8 page report for delivery to the
requester.
What I want to do is build my own desktop solution to make my job a
little easier. I've already got a randomizer function I built long
ago in Access so I'd like to do everything but the final formatting in
Access. I'd like to just pick a query from a combo box, enter some
criteria in some other text boxes and hit a button to spit out the
Excel files.
So (sorry about all the wind), how does one populate a combo box with
the queries in the db? I saw it done once (for tables) in a friend's
db years ago but can't remember how he did it. Nor have I been able
to find anything on the web.
Thanks for any help,
RD
I'd like to list all the queries in a db in a combo box (or list box,
whichever) so I can choose one and then manipulate it
programmatically.
Here's the deal: I'm in a group that produces tons of reports for
various people. Much of the work is done manually. For instance, I
was given an adhoc report request this morning. This one report
involves running eight separate queries with slightly different
criteria. Then exporting them to Excel. Then extracting a random
sampling of each recordset (different size and spec for each sample).
Finally formatting the resulting 8 page report for delivery to the
requester.
What I want to do is build my own desktop solution to make my job a
little easier. I've already got a randomizer function I built long
ago in Access so I'd like to do everything but the final formatting in
Access. I'd like to just pick a query from a combo box, enter some
criteria in some other text boxes and hit a button to spit out the
Excel files.
So (sorry about all the wind), how does one populate a combo box with
the queries in the db? I saw it done once (for tables) in a friend's
db years ago but can't remember how he did it. Nor have I been able
to find anything on the web.
Thanks for any help,
RD