>I use the DATAENVIRONMENT ON ALL FORMS/REPORTS. It make you fille ouit the dataenvironment each time you create a new form/report. Any way of just using the DATAENVIRNMENT from the first FORM???????
You can pass your datasessionid from one form to the next.
When you call the form, say:
DO FORM MyForm WITH THISFORM.DATASESSIONID
Then, in the init method of the form you are calling, say:
LPARAMETERS lnDataSessionID
THISFORM.DATASESSIONID = lnDataSessionID
>How do you OPEN Databases in MAIN FORM.
You should write a MAIN program that opens your data or calls an application object that opens the data for you.
OPEN DATABASE MyDBC [SHARED]
>Keep them opened when you go to DETAIL FORM.
Once they are open, unless you close them, they stay open.