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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a variable on a report 1

Status
Not open for further replies.

Talonjpc

Programmer
Jul 29, 2002
21
0
0
US
Hi Everyone:

I have a public string in a module for a report. I want to place that variable on the report somehow. Is there anyway to do this?

Thanks,
Vinay
 
Hi,

You can assign your module level varible to a label in your report' ON OPEN event like:

Private Sub Report_Open(Cancel As Integer)
Me!label1.Caption = MyModuleVarName
End Sub

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top