danielemc2
Programmer
I need to assign a query to a report at run time. I've got the name of the report so I can OpenReport it. Ive tried to set the query at runtime with.
dim query2run,report2prt
query2run = "Name of some query from existing queries"
report2prt = "Name of some report from existing reports"
DoCmd.OpenReport report2prt, acViewPreview , query2run
'but this doesn't work
so now i'd like to just set the Record Source property of the report.
but how?
dim query2run,report2prt
query2run = "Name of some query from existing queries"
report2prt = "Name of some report from existing reports"
DoCmd.OpenReport report2prt, acViewPreview , query2run
'but this doesn't work
so now i'd like to just set the Record Source property of the report.
but how?