K
KK
Hi
I have a report template. The data is generated by a pretty
complex query in VBA. The problem I am having is when
I try to assign the query to the report.
If I try to open the report as below
DoCmd.OpenReport "Review_Form", etc...
I can't set its RecordeSource to the query I generated.
but if I use
Set rptLetters = CreateReport(, "rpt_To_Reviewer")
rptLetters.RecordSource = strSQLQuery
rptLetters.Caption = "Reviewer Letters"
etc...
it opens a blank report. not my template.
I first want to set the recordsource in the report and then
open it. how can I do it?
rgds
KK
I have a report template. The data is generated by a pretty
complex query in VBA. The problem I am having is when
I try to assign the query to the report.
If I try to open the report as below
DoCmd.OpenReport "Review_Form", etc...
I can't set its RecordeSource to the query I generated.
but if I use
Set rptLetters = CreateReport(, "rpt_To_Reviewer")
rptLetters.RecordSource = strSQLQuery
rptLetters.Caption = "Reviewer Letters"
etc...
it opens a blank report. not my template.
I first want to set the recordsource in the report and then
open it. how can I do it?
rgds
KK