Generated Access reports

hafiff

Board Regular
Joined
Feb 5, 2008
Messages
65
Hi everyone,

I have created many reports in the past using button that I created. All the reports that were generated by the macro button is showing in front of other open windows (forms, query, etc.). This time when I created a new database, the reports I created display on a tab - not popping out.

Also, how do you create a macro script after the report is popping out, there will be printer dialog to appear so the user just simply click the print all or by pages later?

I am sure that it is an easy fix, but I just could not figure out at this time so your help is greatly appreciated.

Thanks,
HA
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
what do you mean ...'popping out'?
do you mean printing to the printer?
Is this what you want instead of the report going to 'print preview' to a tab?

if so, the command is
'TO PRINTER
docmd.openreport "rMyReport"

'FOR PRINT PREVIEW
docmd.openreport "rMyReport",acViewPreview
 
Upvote 0
Thanks for the quick reply. Popping out means that it will not be going to 'print preview' to a tab.
Also, can I have the macro version of the vba code below please?
FOR PRINT PREVIEW
docmd.openreport "rMyReport",acViewPreview

Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top