Hi Sir,
Before, I have Browse Normal after my ExecScript() function and I get my data in the cursor. So I thought that putting the grid and just setting the recordsource to crsGrid1 would work just fine. I have this crsGrid1 as permanent name for my cursor. I have added this after ExecScript() Function and I get my data, but at start, I don't get the proper field names in the columns. After that, I get everything correct.
lcAlias = LOWER(ALIAS())
THISFORM.grid1.RecordSource = m.lcAlias
Thanks,
Sam