Your routine will NOT solve the problem described in this thread, because the grid will lose it's contolsource, that's the whole point with my routine.
>Hi Tore,
>>please read my answer to you where I gave the solution!!! Sql select into a temporary cursor, select the cursor linked to the grid, ZAP it and append from the temporary cursor.
>
>In versions>=8
>
>sele cursor
>zap
>Insert into cursor (Fieldlist) Select FieldList From table Where lcFilterBed
>
>should be a better option as it also keeps the cursor open, for vfp6 the syntax is not supported AFAIR.
>
>Regards
>
>thomas