>
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