Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid RecordSource
Message
From
30/09/1997 11:45:37
 
 
To
30/09/1997 11:37:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00052419
Message ID:
00052432
Views:
40
>>>I am having a problem with the grids. I get an exception error when I run a form with a grid control. Here is the scenario. The table in which I want to use as a record source is already open before the form runs. VFP doesn't seem to like this. The way I work around this is I close the table then reopen it in the data environment. Has anyone else experienced this problem? If so, what other solutions are there? I would prefer not to close the table and I don't want to open the table with a different alias since there is code that refers to the original table.
>>>
>>>Maria
>>
>>You should get this problem only if you use Private Datasession. If it's the case, just add the table into Form.DE.
>
>
>I am not using a Private DataSession, but I do open the table into the data environment. My problem is I already have the table open before this form runs. The table is used in other areas in my application. My work around to this problem is to close the table and reopen it in the data enviroment of the form. I just though maybe there is another way of doing this so I wouldn't have to close the table before I run the form.

If the table has been open (as part of default Datasession) before the form (using also default Datasession), you shouldn't include it into DE. What error message you have?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform