Click to See Complete Forum and Search --> : Simple question on using grid


jimi
06-21-2001, 03:32 AM
Hi all,

I have a grid to show some fields of a table, where it's RecordSource is
"c:\temp\MySource.dbf"

And i have several tables with the same structure on the network, users can
choose a table from them, then the program will copy it to c:\temp and replace
the original MySource.DBF file.

I want the Grid to show the content of the file just copied to c:\temp, but
it just become blank whenever I replace the original file, I just dunno how
to do it, any help please?

I have set RecordSourceType=Table in my try, is this correct? I dunno how
to use the grid when it's set to RecordSourceType=Alias too.. this is my
first time to use a grid, any help will be greatly appreciated!

Thanks a lot!!

Jimi

Vlad Grynchyshyn
06-21-2001, 09:14 AM
Hi!

Read FAQ article 'Grid Reconstruction...' at the www.universalthread.com
site. Basically, you can try following:

Grid.RecordSource = ""
Use in MyTable
.... && do copy of anything you need
.... && open MyTable again
Grid.RecordSource = "MyTable"

Hope this helps.

"jimi" <jimi@seito.com.hk> wrote in message news:3b31a30d$1@news.devx.com...
>
> Hi all,
>
> I have a grid to show some fields of a table, where it's RecordSource is
> "c:\temp\MySource.dbf"
>
> And i have several tables with the same structure on the network, users
can
> choose a table from them, then the program will copy it to c:\temp and
replace
> the original MySource.DBF file.
>
> I want the Grid to show the content of the file just copied to c:\temp,
but
> it just become blank whenever I replace the original file, I just dunno
how
> to do it, any help please?
>
> I have set RecordSourceType=Table in my try, is this correct? I dunno how
> to use the grid when it's set to RecordSourceType=Alias too.. this is my
> first time to use a grid, any help will be greatly appreciated!
>
> Thanks a lot!!
>
> Jimi