Setting default paper size to legal

H

headly

So I tried to follow this advice from
See this article:
http://msdn.microsoft.com/archive/d...umControllingYourPrinterinMicrosoftAccess.asp
Thanks to Allen B for pointing out this link.

Unfortunately I can't get the settings to work. Just testing out the Sybex
Ch10 database sample, i try use the SetCopies() function in the OnOpen event
of the report (seems simple enough for starters) using the code

= SetCopies (Report!rptMyReport, 3)

When I run the report I get an error:
The exprexssion On Open you entered as the event property setting produced
the following error: Procedure delcaration does not match description of
event or procedure having the same name.

Anybody get these functions to work? Hints on where I'm going wrong
appreciated. Thx.
 
S

SA

You can't add a function like SetCopies in the On Open event. It must be
called before you open the report.
 
Top