Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LInk subform

Status
Not open for further replies.

DeanReedy

Programmer
Jun 8, 2005
8
US
I have a main form that is Order, using the order table. I have a subform which uses OrderItems using the Items table. Now how do I link it so that only a Order's OrderItems appear in the subform.

Both table have the key of Order_id.

How do I filter on only the main form's current Order?

thanks,

Dean

 
Hi Dean
its very simple. if you have forein key of OrderID in OrderItem table. From your toolbar drag subreport tool into mainform ,it will make subform automatically.
If subform is not working then manually changet he child and master feilds of subform.
 
Where are the child and Master field in the subform? That is what I can not find.
 
Select subform which is in mainform.Right click --go in properties---Data tab----See Link Child fields and Link master fields.Write
Child fields foriegn key
Master Fields Primary key
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top