Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Public' variables on Reports? 1

Status
Not open for further replies.

solo7

Technical User
Mar 14, 2001
243
NO
I have several 'Public' variables the data from which I would like to get on to a report.
Is there any way I can get these values into a report ???

Steady ...
 
Hi!

Declare a function in one of your modules to fetch the variable, and then plase the function name as controlsource for the control in your report.

Function GetVariable() as "DataType"
GetVariable=YourPublicVariable
End Function

In your report controls controlsource, place;

=GetVariable()

Roy-Vidar
 
Solo7:

If you just want to display the values in the report you can use:

Forms!frmFormName.txtFieldName


Larry De Laruelle
larry1de@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top