I've been working for quite awhile on this, and I know someone here can help me with probably one line of code, or just point me in the right direction.
I've got a report that prints mailing labels. I have a form that pops up from the reports OnOpen() event to ask some options (what label to start printing at, all accounts, or to select a single account). This all works fine.
THE PROBLEM IS: My boss now wants the ability to print labels that are from a separate query. I could easily just create a copy of the report and change the recordset to the new query, but it would look much better if I can have an option button that will change the report's recordset. I'm sure this is possible.
The Report is called Mailing Labels and I've got an SQL statement already written that if I can just write some VBA for the following pseudocode, I'd be set.
SQL = MySQL Statement
Report.[Mailing Labels].Recordset = SQL
Please help if you can! Thanks!!!
I've got a report that prints mailing labels. I have a form that pops up from the reports OnOpen() event to ask some options (what label to start printing at, all accounts, or to select a single account). This all works fine.
THE PROBLEM IS: My boss now wants the ability to print labels that are from a separate query. I could easily just create a copy of the report and change the recordset to the new query, but it would look much better if I can have an option button that will change the report's recordset. I'm sure this is possible.
The Report is called Mailing Labels and I've got an SQL statement already written that if I can just write some VBA for the following pseudocode, I'd be set.
SQL = MySQL Statement
Report.[Mailing Labels].Recordset = SQL
Please help if you can! Thanks!!!