Change data environment on fly on Form
Posted on 2010-09-24
This is the first form (.scx)I have created myself to manipulate data, so sorry for my ignorance. I used the wizard to create the form. And it asked for the underlying data so every time I load the form now the data environment shows the table. I want to change the data environment depending on the information in another variable. I know I can delete the file from the data environment and then change the field names to not reference the file. The question is how to load the proper data environment into the form. I have a company variable that changes when the user goes to that company information. So I want to load the relevant data environment (lets call them company1 and company2) for the specific company variable. I should add that I am using VFP 6.0. Thanks for your help.