Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing data into variables and using later 1

Status
Not open for further replies.

jgarnick

Programmer
Feb 16, 2000
189
US
I have a form that has several different address type fields. I want to put an event in the after update property of each of the fields that will capture the data from that field into a variable. Then when the form is closed, or is moved to a new record, I want to dump all the variables into a table. If I move to a new record, I may want to re-assign the variables again and dump them and so on. (I'm trying to capture address changes to print them on a report.)<br>
<br>
I'm having problems with the variables not being stored, and I'm pretty sure it has to do with how I have declared them--I tried using the public statement at the module-level but for some reason it interfered with a combo box that I have on the form. I also tried using the static keyword, but couldn't get it to work. It's seems like a pretty simple thing I need to do, but I'm doing something wrong!<br>
<br>
Thanks for any help! <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>
 
Sounds like you need to define the variables at a global level.<br>
<br>
Create a module ( or use an existing one ) and use the Global declaration for your variables.<br>
<br>
WP <p>Bill Paton<br><a href=mailto:wpaton@neptune400.co.uk>wpaton@neptune400.co.uk</a><br><a href=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top