DOCUMENT:Q142567 14-AUG-1999 [foxpro] TITLE :HOWTO: Filter a Child Grid Using a Parent Combo Box PRODUCT :Microsoft FoxPro PROD/VER: OPER/SYS: KEYWORDS:kbvfp300 kbvfp300b kbvfp500 kbvfp600 ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 6.0 ------------------------------------------------------------------------------- SUMMARY ======= In a one-to-many relationship, you can filter child records displayed in a Grid by using the Value property of a combo box. One method is to use the RelationalExpr and LinkMaster properties of a grid. This article gives you another method, which uses a SET FILTER command along with a SELECT-SQL statement as the row source of a combo box. MORE INFORMATION ================ To filter the records from the child grid, use the related field from the parent table as the RowSource of a combo box, and use the SET FILTER command. Step-by-step Example -------------------- 1. Create a new form by typing the following command in the Command window: CREATE FORM