Hi all,
I use the code below to preview a report;
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim strDocName As String
Dim strWhere As String
strDocName = "Report32"
strWhere = "[RecordNo]=" & Me!RecordNo
DoCmd.OpenReport strDocName, , strWhere
This will preview the current report data to be printed.
How is the code written to just print the report without the preview.
Many thanks,
Ken
I use the code below to preview a report;
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim strDocName As String
Dim strWhere As String
strDocName = "Report32"
strWhere = "[RecordNo]=" & Me!RecordNo
DoCmd.OpenReport strDocName, , strWhere
This will preview the current report data to be printed.
How is the code written to just print the report without the preview.
Many thanks,
Ken