Hi!
thisform.MyGrid.RecordSource=""
SELECT ... INTO CURSOR BOR nofilter
thisform.MyGrid.RecordSource="BOR"
Note that you will lose your custom control sources in columns after that, if they do not match exactly to the order of fields in cursor.
You can read more details in the "VFP Grids Part I" article on this site.
HTH.
>I have a grid containing data from cursor BOR which is created using SQL query in the LOAD event of the form. I need to be able to refresh the data in the cursor, and display the updated cursor in the grid, while the form is still loaded
>
>Where should I place the the SQL query to re-create the cursor BOR in the form?
>
>I asked this question some time ago and some people were kind enough to reply but I accidentally deleted their answers! So please reply to this again even if you may have helped out beforehand!
>
>Thank you
>
>Bob
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.