Link to home
Start Free TrialLog in
Avatar of Mik Mak
Mik Mak

asked on

Using global constant on report

I want to use/refer to a Public Const (pubAccNo) in a textbox on a report (see example below) - but when running the report it asks for the value of the constant - can global constants not be referred to on a report ?

ControlSource = "Accountnumber: " & pubAccNo
ASKER CERTIFIED SOLUTION
Avatar of Anders Ebro (Microsoft MVP)
Anders Ebro (Microsoft MVP)
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can also use TempVars:

Tempvars.Add("AccountNumber", YourAccountNumber)

Then grab that value:

Tempvars.Item("AccountNumber")