UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> How to call the public variable value in Report    
 
   
Murali
post 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
Go to the top of the page
 
+
 
Start new topic
Replies
cheekybuddha
post 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
Go to the top of the page
 
+

Posts in this topic


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 12:17 AM