Jimi if you change the grid recordsource property then you must define the columns again.
>hi Yuri,
>
>I have tried that but it doesn't help for me :(
>
>The code I used to copy the DBF is shown:
>
>close tables
>TempName="C:\TEMP\MySource.DBF"
>copy file "&TargetPMS" to "&TempName"
>use &TempName
>thisform.myGrid.recordsource=&TempName
>
>
>still become blank after this code, and not a normal blank, even the grid lines of the grid are disappeared..
Alexandre Palma
Senior Application Architect