[AccessD] Passing OpenArgs to Subreport

Doug Steele dbdoug at gmail.com
Tue Sep 1 14:21:22 CDT 2009


Openargs is the sixth parameter of the OpenReport action, not the third.
You need some more commas!

Doug Steele


On Tue, Sep 1, 2009 at 12:07 PM, RANDALL R ANTHONY <RRANTHON at sentara.com>wrote:

> Howdy peeps,
> Probably simple answer but I can't find anything to specifically to solve
> my problem, could it be one of those can't get there from here?
>
> A2003.
>
> DoCmd.OpenReport sObjName, acPreview, strSvcRegion & "~" & strLocality
>
> When it hits the main report, which is just a shell with three subreports,
> I get the 2491 error.
>
> I've created a label to hold the openargs string, but it doesn't even get
> there.  I've tried a couple other things but that just results in
> the openargs value in the main report to be null.  I'm trying to pass
> report labels to the subreport.
>
> TIA.
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>



More information about the AccessD mailing list