How to display Public Variables in a form?

MrTibbs

Registered User.
Local time
Today, 21:56
Joined
Oct 10, 2001
Messages
101
Novice question:
Access '97
Module LRS has PUBLIC udb
udb is assigned a value which can be seen in the debug window (just a text string, like "MH" etc).
How can the value be seen on a form?
All I want is to see the value that's been read from the command line.
 
Put an unbound text box on the form. Then in any event you choose (perhaps form_current), assign the value of the public variable to the text field....

me.txtTextBoxName = gVariableName

Chris
 
Thank you Chris. I also solved it with the following:

Function Showudb()
Showudb = udb
End Function

Then put =showudb() as the control source to my text box.

I'll try your alternative to see whether it works for me.
 

Users who are viewing this thread

Back
Top Bottom