>Hi all..
>Is there a way to dymanically change the contents of a grid? Sort of like a listbox has addlistitem?
>
>The thing is, I only want to populate a grid with part of a database, and the part I want to fill the grid with will change every few minutes or so. Is this possible?
The grid RecordSource is a cursor of some sort. As the records in the cursor change, call the grid's Refresh() method. The new records will show.
If you need only some of the records, you could either create a view and use the view as the grid.RecordSource. Then you would REQUERY() the view before refreshing the grid.
Or you could set a filter on the cursor. It's usually slower than using a view, esp with a large set of data. If the data set is small enough, it shouldn't be a problem.
HTH
Insanity: Doing the same thing over and over and expecting different results.