Use of OpenArgs - DoCmd.OpenReport

GUIDO22

Registered User.
Local time
Today, 14:54
Joined
Nov 2, 2003
Messages
515
Hello
i have the following DoCmd proc. call :

DoCmd.OpenReport strReportName, PrintMode, , strWhere, , "19000"

[The OpenArgs parameter being "19000"]

In the corresponding Report_Open event I have:

Me.Caption = Me.OpenArgs

But, when I run and inspect in the Report : OpenArgs is Null....?????

Anyone any ideas why this is happening please?

Thank you in advance.

Guido
:confused:
 
Use the OnPrint or OnFormat event of the Section where you have the control.
 
Actually, it should work FINE in the Open event like you have, but you are saying PrintMode instead of the correct:

acViewPreview ' to view it first

or

acViewNormal ' to print it.

The Caption will not show in the printed form. It will only show in the PREVIEW.
 

Users who are viewing this thread

Back
Top Bottom