>Yes i tried it,but it gives a grid,if i delete the grid and put come field from the child table in the form and when i click add the data goes only to the parent table not the child table.
>
The other solutions I have are all built from other commercial frameworks; you might look at downloading Visual MaxFrame and playing around with some of its classes; VM Professional had a ready-built set of classes for Parent-Child forms built around using listboxes and an edit frame for child records, but it isn't PD. There are strong examples in "Effective techniques for Application Development in Visual FoxPro 6.0" by Jim Booth and Steve Sawyer; it's published by Hentzenwere (
www.hentzenwerke.com) and people who purchase the printed or e-book format of the book are entitled to download the full source of the sample code from the book, which Jim and Steve have enhanced considerably since its release.