P
PJ
I have a table that stores custom groups of people in SQL statements. Users
choose a group from a combo box. The idea is to then open a report with the
recordsource = the appropriate SQL.
The following works, but seems really clunky. There must be a better way.
Any help would be appreciated.
DoCmd.Echo False
DoCmd.OpenReport "rptTest",acViewDesign
Reports!rptTest.RecordSource = SQL
DoCmd.OpenReport "rptTest",acViewPreview
DoCmd.Echo True
choose a group from a combo box. The idea is to then open a report with the
recordsource = the appropriate SQL.
The following works, but seems really clunky. There must be a better way.
Any help would be appreciated.
DoCmd.Echo False
DoCmd.OpenReport "rptTest",acViewDesign
Reports!rptTest.RecordSource = SQL
DoCmd.OpenReport "rptTest",acViewPreview
DoCmd.Echo True