Report Printing Problem

P

Phil Gamble

My main form opens a report and is then hidden, sometimes
when I print the report the form is printed instead for
all the records in the current filtered set of records.
Does anyone have an idea why this happens ?
 
S

SA

Phil:

Make sure that you add a simple line of code like this in whatever code you
use to hide the form, before you send the report to print:

Docmd.SelectObject acReport, "Your Report Name Here"
 
Top