setting a global variable

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
 
A

Adrian Jansen

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
 
H

Hedi

Go to any module and type

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

Hedi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top