I have 2 forms both forms have seperate tables in there dataenvironment.
Form 1 DE has mainfile.dbf
Form 2 DE has srchwrd.dbf
Form 1 has a SEARCH button control that calls Form2
When Form 1 gets focus again the mainfile is open but the workarea has changed and the program asks for a .DBF file. If I select a mainfile.dbf it says file is open.
The thing is, It was working before just fine. I even made a new form and put a .dbf file in its DE. that it calls for a test and that form does nothing at all but return to form 1 with thisform.release in the click controls event.
I solved the problem with using "select mainfile" in the GOTFOCUS method of form1 but why is the work area changing. Why did it work fine before tonight. Is this ok to put select mainfile in the Gotfocus event.
Form 1 DE has mainfile.dbf
Form 2 DE has srchwrd.dbf
Form 1 has a SEARCH button control that calls Form2
When Form 1 gets focus again the mainfile is open but the workarea has changed and the program asks for a .DBF file. If I select a mainfile.dbf it says file is open.
The thing is, It was working before just fine. I even made a new form and put a .dbf file in its DE. that it calls for a test and that form does nothing at all but return to form 1 with thisform.release in the click controls event.
I solved the problem with using "select mainfile" in the GOTFOCUS method of form1 but why is the work area changing. Why did it work fine before tonight. Is this ok to put select mainfile in the Gotfocus event.