T
ToniS
I have a report with a sub report on it, when I run the report in the .ADP
application the report works fine, when I create an .ADE and run the same
report it does not run, I get the following error: "The OpenReport action
was canceled" After further research I found out that the below code will
only work for .ADP, what would be the work around to have this work for an
..ADE?
strSQL = "SELECT ......FROM AView WHERE ShowId = '" & pubShowID & "'"
DoCmd.OpenReport "ExhReport_SubReportRepGroups", acViewDesign
Set subRptrepGroups = Reports!ExhReport_SubReportRepGroups
subRptrepGroups.RecordSource = strSQL
DoCmd.Close acReport, "ExhReport_SubReportRepGroups", acSaveYes
I basically have a subreport with a select statement on a view that I would
like to have a where clause based on ShowID.
I have tried setting the subreport Recordsource and I get the following
error: "You can't set the RecordSet Property in print preview or after
printing has started"
I am currently using A2003
Thanks
ToniS
application the report works fine, when I create an .ADE and run the same
report it does not run, I get the following error: "The OpenReport action
was canceled" After further research I found out that the below code will
only work for .ADP, what would be the work around to have this work for an
..ADE?
strSQL = "SELECT ......FROM AView WHERE ShowId = '" & pubShowID & "'"
DoCmd.OpenReport "ExhReport_SubReportRepGroups", acViewDesign
Set subRptrepGroups = Reports!ExhReport_SubReportRepGroups
subRptrepGroups.RecordSource = strSQL
DoCmd.Close acReport, "ExhReport_SubReportRepGroups", acSaveYes
I basically have a subreport with a select statement on a view that I would
like to have a where clause based on ShowID.
I have tried setting the subreport Recordsource and I get the following
error: "You can't set the RecordSet Property in print preview or after
printing has started"
I am currently using A2003
Thanks
ToniS