>>>>>To Anyone,
>>>>>
>>>>>Every time I add a table to a form dataenvironment i run the form then
>>>>>I lose the table a get an application error telling me that the table is missing. How can i keep my table in it's dataenvironment?
>>>>>Any help:)
>>>>>
>>>>>Thanks
>>>>>Nick
>>>>
>>>>You shouldn't be 'losing' the table at all. Are you sure that your DataSession property is 2?
>>>>
>>>>Matt
>>>
>>>
>>>My DataSession is set to the default which is 1. Can i verify my DataSession in my form?
>>>
>>>Thank you
>>>Nick
>>
>>There is one DE trick: if you start another form (modal) which also have the same table in own DE, then you really 'lose' the table. The solution is: either use private data session, or be careful including tables in DE (avoid duplicates).
>
>Matt,
>
>I only use the table in one form and the form is modal.
>The weird part is that it happen sometimes not always. I'm trying to retrace my
>step to find what i do different, but i can't pin point the source.
>
>Thank you
>Nick
If you have just one form and you are sure that the table missed (this case you should get error massage like "Alias 'Table1' is not found") then you should look for the place in code where you could accidentally close the table (e.g. you opened another table/cursor in the same work area).
Edward Pikman
Independent Consultant