The information in this article applies to:
SYMPTOMSIf you create a form containing a grid whose record source is a child table in a relation that is broken with the SET RELATION TO command, the grid behaves as if the relation were still set and continues to show a subset of records from the child table. CAUSEFor performance reasons, the relation information is cached and is not reread until the grid is forced to reevaluate its record source. WORKAROUND
Set the grid's record source to the grid itself to clear the cached
information and to force the grid to reevaluate its record source, as in
the following example:
STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
To incorporate the workaround into this example, add the following code as the third line of the Click method of the command button on the form created above:
Run the form, and click the button. The grid updates to show all child
records.
Additional query words: kbdse VFoxWin
Keywords : kbVFp500 kbVFp600 FxprgGrid |
Last Reviewed: August 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |