setting a global variable

  • Thread starter Thread starter Junior
  • Start date Start date
J

Junior

Hi - in a textbox after update event i want to capture the value that was
entered - (in this case 9 digit string for SSN)
as a variable to be used in other modules.
How do i create a global string variable - named strASSN
that i can use in other form modules??
Thanks
 
Create a code module - a module not attached to a form or report, then in
its Declarations section put:

Public strASSN as string


--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
Go to any module and type

Global strASSN as string
Note: Global variables can only be declared in modules
(not in form modules)

Hedi
 
Back
Top