Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid error - Cannot access the selected table
Message
From
05/01/2008 06:11:47
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01279248
Message ID:
01279588
Views:
18
>Hi,
>
>>See also Cannot access selected table error FAQ #18812
>
>Thx. That did lead me to the problem - which wasn't the data binding for the grid but the Rowsource for a combobox in one of the columns (The underlying cursor was being rebuilt)
>
>Did find an oddity though:
>The grid is built on the fly so, to enable me to reset the RowSource on the combobox, I added a form property to hold a reference to it. I found that unless this was NULLed before closing the form VFP threw a fatal error :={
>
>Regards,
>Viv

Viv,

did you read my suggestion, message#1279359? My point is to never rebuild the cursor, instead you use the same cursor all the time. Then you don't have to recreate the grid every time you select new data. Very easy to implement, and will remove most of your problems.
Previous
Reply
Map
View

Click here to load this message in the networking platform