Carry variable from vba module to form

  • Thread starter Thread starter Michael Walsh
  • Start date Start date
M

Michael Walsh

How can I set a value unrelated to any table or form in a
vba module and then use it in a form?
 
Hi,
If it's a public variable in a standard module, then you can read/change the
value from anywhere in your code simply by refering to the variable.
If you wanted to display the value in a textbox:

Me.yourTextBox = yourPublicVar
 
Back
Top