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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing forms from one file to another

Status
Not open for further replies.

work4free

Technical User
Jul 22, 2004
21
US
i have two files: "test" and "master". in the test file i create new forms, queries, etc and if they work properly, i import them into the master file.

recently, i created 2 forms in test - one form list all rooms for all buildings we manage. when the user selects the room in the proper building they double-click the room number and form 2 loads - the room number is stored in a global variable. on this form the necessary information is entered for this room.

throughout all testing and debugging, this worked in the test file. in order to make this available for use by our employees, i needed to import all necessary information into the master file. i've done this numerous times before with no problem. this time, however, it does not work after i imported it to master. the global variable (room number) is not stored properly and is not available in the second forms.

i did nothing to the forms but import them. the forms still work in test but nothing in the master file...does anyone know what might cause this or how to solve this dilemma?
 
Where is the global variable situated? On the form, on another form, in a module?

Does this help?


Program Error
Why is it, I still think in terms of spectrum BASIC!
 
the global variable is in a module...i imported the module as well...there are three things working here: form1, form2 and module1...i imported all three from test to master...it still doesn't work...please help. [sadeyes]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top