D
dch3
I've built a wizard in which users enter a new order. As the last step in the
wizard, I want to create a snapshot of the Order Recap and then display the
snapshot in the SnapShot ActiveX control that I've embedded in the wizard. I
do not want the user to see the report offscreen - just in the ActiveX
control. I also want the report to be generated and completed before moving
to the page with the AX control.
1) How do I run the report with the appropriate WHERE statement and then
output the report to acFormatSNP so that the report is not seen by the user?
2) When I tried this...
DoCmd.OpenReport "rptOrder_Detail", acViewPreview, , "lngOrderId = " &
Me.pg2_lstParts, acHidden
DoCmd.OutputTo acOutputReport, "rptOrder_Detail", acFormatSNP,
"C:\Temp\rptOrder_Detail.snp", False
DoCmd.GoToPage (3)
The DoCmd.GoToPage(3) crapped out giving me a 'You cannot go to the page'
error.
wizard, I want to create a snapshot of the Order Recap and then display the
snapshot in the SnapShot ActiveX control that I've embedded in the wizard. I
do not want the user to see the report offscreen - just in the ActiveX
control. I also want the report to be generated and completed before moving
to the page with the AX control.
1) How do I run the report with the appropriate WHERE statement and then
output the report to acFormatSNP so that the report is not seen by the user?
2) When I tried this...
DoCmd.OpenReport "rptOrder_Detail", acViewPreview, , "lngOrderId = " &
Me.pg2_lstParts, acHidden
DoCmd.OutputTo acOutputReport, "rptOrder_Detail", acFormatSNP,
"C:\Temp\rptOrder_Detail.snp", False
DoCmd.GoToPage (3)
The DoCmd.GoToPage(3) crapped out giving me a 'You cannot go to the page'
error.