[AccessD] Public Variables - Scope and Lifetime

Borge Hansen pcs at azizaz.com
Thu Nov 24 21:30:27 CST 2005


Hi all,
Please help me here, I am going nuts!

How do I keep the value of a public variable between a Main Report class module
and Sub Report class module

In the main report class module I have declared the variable:

Option Compare Database
Option Explicit
Public pboolPrintPageHeader as boolean

And Similar in the sub report class module:
Option Compare Database
Option Explicit
Public pboolPrintPageHeader as boolean


I just want a variable I can control the value of. When running the report it
switches between the subreport and the mainreport.....

regards
/borge





More information about the AccessD mailing list