>Thanks Ed. Here is the 'other' problem. I never know in advance what the cursor name happens to be, because it generated with the following function:
>
>xcursor=fxcursname()
>
>FUNCTION fxcursname
> LOCAL ycursor
> ycursor='X'+SUBSTR(sys(2015,4,10)
> RETURN ycursor
>
>The reasoning is that you should be able to open multiple copies in a form with each one having it's own data set.
>
>It seems like it would work if I knew the cursor name in advance, but when it is stored in the variable, I can't get the code to recognize it.
>Any more thoughts?
You may call:
cAlias=cMycursoralias
thisform.grid.recordsource=cAlias
thisform.grid.refresh
Edward Pikman
Independent Consultant