My Assistant
|
|
Sep 12 2005, 05:15 AM
Post
#1
|
|
|
UtterAccess Member Posts: 25 From: KL, Malaysia |
Dear All,
I would like to use the value of a variable defined in the module in a report. I created a text box and assigned the control source property to "=[sCurrency]" where sCurrency is the variable defined in the module. This is not recognized and asking for the parameter value for "sCurrency" while running the report, but when I use the same variable in forms it shows the value stored in the variable "sCurrency". This is very much required as I need to print the currency type in the reports using the public variable. Could any one give any suggestion for this ? Thanks in advance. Bye, Murali |
|
|
|
![]() |
Sep 12 2005, 05:22 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 5,486 From: Brixton, front line |
Hi Murali,
Use a function to return the value of your global variable: CODE Public Function fCurrency() As String fCurrency = sCurrency End Function Make the function return the same datatype as sCurrency (I'm guessing it's a string since it's called 's'Currency) hth, d |
|
|
|
Murali How to call the public variable value in Report Sep 12 2005, 05:15 AM
bome Re: How to call the public variable value in Report Sep 12 2005, 05:21 AM
Murali Re: How to call the public variable value in Report Sep 12 2005, 09:37 PM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 23rd May 2013 - 12:17 AM |