Display Variable/Constant Value on Text Box

espua

Registered User.
Local time
Tomorrow, 05:22
Joined
Sep 15, 2005
Messages
11
Hi all,

I tried to display a variable and constant onto a text box by putting =myvariable onto the data source of the text box. However, Access seems keep threating my variable as a data field and giving me error message. What to do with this?
 
You need to use a function to return the value of the constant

i..e

Code:
Const MyVal = 10

Function GetVal()
    GetVal = MyVal
End Function


Then, on your form use =GetVal()
 

Users who are viewing this thread

Back
Top Bottom