>>Where does the grids loose their RecordSource? At design-time or at run-time?
>>If they loose their RecordSource at design-time is it possible that you close and reopen for some reason the tables that the grids are bound to. What kind of RecordSourceType do you use. Does this appear when you run only one form (this one) or you open and close other forms? Is the form modal?
>
>Hi Zlatin,
>Sorry this took so long. I went out of town.
>
>Only 1 form loses the RecordSource at run-time for 3 grids. I'm using parameterized views for the record sources. It's a modal form called from a Button.Click() of another form.
>
>We can visually see that the grids have lost their RecordSources as soon as the form is opened, because we can see a black bar along the left of 2 of the grids. These 2 grids have DeleteMark set to .T.
>We discovered that if we close the form immediately after opening it the first time, then reopen it, it works fine.
>
>I've reached the conclusion that the SCX file must be corrupted, even though it works fine when we reopen it the second time.
How do you load the data from the parametrized view? Do you use Form's DataSession or you load the data manually at the Load event of the form.
If you use DataSession try to load the data at the load event.
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!