View Single Post
  #2 (permalink)  
Old September 13th, 2006, 12:27 PM
mmcdonal mmcdonal is offline
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Don't quote me, but I think a Master/Child link on a form/subform will only take one column.

Double click the subform in design view and select the data tab, then select the Master and Child fields you want to use.

You alternative is to code this OR use a query with criteria that look to the controls on your main form.

So the query behind your subform with have this as criteria for txtExecID:
[Forms]![frmMainFormName].[txtExecID]

And the txtCode field in the query would have this criteria:
[Forms]![frmMainFormName].[txtCode]

For both of these, they may be referencing columns in the text box or combo box you are using.

The thing is, doing it this way means that only records that satisfy both field values will be returned.

Do you have more info?




mmcdonal
Reply With Quote