scubadiver said:
Cheers.
They are in two separate subforms.
The "BranchID" field is what relates each branch to all its respective
queries.
I am assuming the reference you have given goes in the queries
subform and the master field refers back to the branch form? This is
what I have typed:
Link Child Fields: BranchID
Link Master Fields: [Forms]![queries form]![branch
form].Form![branchID]
But isn't quite right. I get the following: "The expression you
entered refers to an object that is closed or doesn't exist".
For Customer 1 / Branch 1, I have three logged queries, numbered 1-3.
If I move to Customer 1 / Branch 2, I can still cycle through the 3
queries. If I move to a different customer number, the queries
disappear.
You might need to issue a Requery on the Querys subform whenever you
navigate in the Branch subform or in the Main form. Subforms aren't
supposed to need this, but I have seen occassions where it was necessary.
As an alternative you can put a hidden control on the main form that
references the control on the Branch Subform with a ControlSource of...
=[branch form].Form![branchID]
....and then just use the name of that TextBox as the MasterLink property of
the Querys subform control. Leave the TextBox visible during testing so you
can see that it is showing the correct value as you navigate. Once you get
it working you can hide it.