Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid error - Cannot access the selected table
Message
From
03/01/2008 14:50:51
 
 
To
03/01/2008 11:33:35
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:
01279331
Views:
14
>I'm getting the error "Cannot access the selected table" when referencing a grid as in
>
>THIS.GRID.SETALL("MousePointer",11)

>
>I tested this in one of my working production forms by putting this line:
>
>
>thisform.grdlv_count_dtl.SetAll( [Mousepointer], 11 )
>
>
>in the form's Init() and it worked without any problems.
>
>Where in the calling stack are you trying to execute this code?
Just a regular method called way after everything has been instantiated.

>I assume that your grid is not really named grid, is it?
Yes (as in THISFORM.Grid). Why might that be a problem?

I should probably mention that the method in which this error occurs is run twice - the first time without error. The cursor to which the grid is bound is maybe (not sure - need to dig) being re-created but with the same name and fields.

Oddly (if it's a binding problem) I can't even issue 'ThisForm.Grid.RecordSource=""' without getting the error....

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform