G
Guest
I have had an awful time getting a public variable to work in my DB.
All I want to do is transfer a text value from one form to another.
So my user will start on the initial form, at which point they enter a
Social Security Number as part on the basic patient information. The SSN is
very important as it makes up component keys for pretty much every other
table in the DB. As such, when I open a new form to enter an address for the
patient, I really need to transfer this SSN along with it. So far my code is
something like such:
Standard Module:
Public Social_Security_Number as string
Initial Form (FRM_Patient_Basic):
(this is on TXT_Social_Security_Number.Exit)
Set Social_Security_Number = TXT_Social_Security_Number.Text
Address Form (FRM_Patient_Address):
Form_Load
TXT_Social_Security_Number.Text = Social_Security_Number
*Note, both Forms have a Control named TXT_Social_Security_Number
Any help you could give me would be greatly appreciated.
Thanks!
All I want to do is transfer a text value from one form to another.
So my user will start on the initial form, at which point they enter a
Social Security Number as part on the basic patient information. The SSN is
very important as it makes up component keys for pretty much every other
table in the DB. As such, when I open a new form to enter an address for the
patient, I really need to transfer this SSN along with it. So far my code is
something like such:
Standard Module:
Public Social_Security_Number as string
Initial Form (FRM_Patient_Basic):
(this is on TXT_Social_Security_Number.Exit)
Set Social_Security_Number = TXT_Social_Security_Number.Text
Address Form (FRM_Patient_Address):
Form_Load
TXT_Social_Security_Number.Text = Social_Security_Number
*Note, both Forms have a Control named TXT_Social_Security_Number
Any help you could give me would be greatly appreciated.
Thanks!