Hi Samuel,
This is something strange you're trying to do. Why do you need to use Excescript in this case at all? And can you create a cursor for your grid in form's load and then just use a "safe select" approach?
Can you elaborate more in what you're trying to accomplish?
>Hi Sir,
>
>How do I dump all my data in my cursor to my grid? Please help.
>
>
>LOCAL lcSQL
>
>lcSQL = "SELECT * FROM MyTable INTO CURSOR crsGrid1"
>
>EXECSCRIPT(m.lcSQL)
>
>THISFORM.grid1.RecordSource = "crsGrid1"
>THISFORM.grid1.Refresh
>THISFORM.txtSqlWindow.SetFocus
>
>
>Thanks,
>Sam
If it's not broken, fix it until it is.
My Blog