G
Guest
Hello,
I have a main Form that is unbound, called frmContracts.
On frmContracts, I have 2 sub forms:
subfrmContracts - where it's record source is a Cross Tab Query
and
subfrmAmendments - where it's record source is a Table
So basically for each Contract (which is listed in subfrmContracts) there
can be many Amendments which are listed in subfrmAmendments.
What I would like to do, is when a user selects a Row in subfrmContracts for
the subfrmAmendments to automatically upadate with only the records for the
Contract select in subfrmContracts. They both have a Field called
ContractNumber (which is a Text field). I can not get this to work.
I tried in the subfrmContracts Current Event...
Private Sub Form_Current()
Form_subfrmAmendments.FilterOn = True
Form_subfrmAmendments.Filter = "ContractNumber = '" & txtContractNumber & "'"
Form_subfrmAmendments.Requery
End Sub
I also tried adding to the subfrmAmendments
Link Child Field = ContractNumber
Link Master Field = Forms!frmContracts!subfrmContracts!ContractNumber
I tried many other things and still cant get this to work.
Any help would be greatly aprreciated.
Thank you,
Jeff
I have a main Form that is unbound, called frmContracts.
On frmContracts, I have 2 sub forms:
subfrmContracts - where it's record source is a Cross Tab Query
and
subfrmAmendments - where it's record source is a Table
So basically for each Contract (which is listed in subfrmContracts) there
can be many Amendments which are listed in subfrmAmendments.
What I would like to do, is when a user selects a Row in subfrmContracts for
the subfrmAmendments to automatically upadate with only the records for the
Contract select in subfrmContracts. They both have a Field called
ContractNumber (which is a Text field). I can not get this to work.
I tried in the subfrmContracts Current Event...
Private Sub Form_Current()
Form_subfrmAmendments.FilterOn = True
Form_subfrmAmendments.Filter = "ContractNumber = '" & txtContractNumber & "'"
Form_subfrmAmendments.Requery
End Sub
I also tried adding to the subfrmAmendments
Link Child Field = ContractNumber
Link Master Field = Forms!frmContracts!subfrmContracts!ContractNumber
I tried many other things and still cant get this to work.
Any help would be greatly aprreciated.
Thank you,
Jeff