[AccessD] Accessing Public Variables for use in a report

Gustav Brock gustav at cactus.dk
Mon Aug 4 07:53:51 CDT 2003


Hi Julie

You need to move those public variables to a stand alone module.
In a cbf-module they are public to the code of that form/report only.

/gustav

> My question about public variables stemmed from some variables that I have
> declared in the General section of the code behind a form.  I would like to 
> use the value of those variables on a report, and can't seem to get anything 
> out of them except zero.  Should I be placing an unbound textbox on the 
> report and then setting their value equal to the variable name on the 
> report?  I ended up trying that as well as assigning the value in the 
> OnFormat event procedure behind the report and neither seems to work.  What 
> am I doing wrong?  Do I need to reference the variables differently because 
> they are declared behind the form instead of in a separate module?



More information about the AccessD mailing list