Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2010 Report does not have Focus

Status
Not open for further replies.

MacroAlan

Programmer
Dec 4, 2006
134
0
0
US
I'm building a report using a temp table to hold the data. The report looks great. The problem comes when the user tries to print and even though the report is selected and on top of the control form, the form is printed and not the report.

Could the problem be in my code?
Code:
   DoCmd.OpenReport "rptScrapReport", acViewPreview

   DoCmd.SelectObject acReport, "rptScrapReport"

Can I tell the form to lose focus?


Alan
[smurf]
 
That is what they try to do but it prints the Form


Alan
[smurf]
 
I have never had that happen. When I open a report in Print Preview and then click the printer icon, it always prints the report and never the form. By any chance is your form opened in dialog mode? Is there any code in your report?

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top