M
MBoozer
I am desperately trying to link a subform (Suppliers) to another subform
(MSDSDocs) from my main form (Chemicals). Chemicals have many Suppliers and
each Supplier has many MSDSDocs. On my main form (Chemicals), if you activate
the Suppliers subform (I have it set to visible.NotVisible), it shows all of
the Suppliers for the specific chemical that is being displayed on the main
form (Chemicals). The Suppliers subform is displayed as a continuous from and
the field SupplierName is set to a hyperlink. The list would look something
like this:
Supplier1
Supplier2
Supplier3 and so on.
When I click any of the above supplier names, the second subform for
MSDSDocs is displayed (I have it set to visible.NotVisible also) BUT it
displays all of the MSDSDocs from all of the Suppliers that are associated
with the chemical on the main form. The linking for the chemical via
(IDPartNo) is working as the MSDSDocs subform only displays the MSDSDocs for
the current chemical record. HOWEVER, I only want it to display the MSDSDocs
for Supplier1 when I click on Supplier1, only the MSDSDocs for Supplier2 when
I click on Supplier2 and so on. I don’t want it to display all of the
MSDSDocs for all of the Suppliers associated with a particular chemical. The
code on my subform Suppliers field SupplierName onclick event is:
stLinkCriteria = "[IDSupplier]='" & Me![IDSupplier] & "' And [IDPartNo]
='" & Me![IDPartNo] & "'"
IDPartNo is from my Chemicals Table, Suppliers Table, and MSDSDocs Table.
Any suggestions? It took me a while just to write this question. If this is
confusing, I posted a screen shot of what I am trying to do at
http://www.chemreport.com/test/helpme.htm
Sorry for the long post but I spent my whole Thanksgiving holiday on this
one. I know I am close?
(MSDSDocs) from my main form (Chemicals). Chemicals have many Suppliers and
each Supplier has many MSDSDocs. On my main form (Chemicals), if you activate
the Suppliers subform (I have it set to visible.NotVisible), it shows all of
the Suppliers for the specific chemical that is being displayed on the main
form (Chemicals). The Suppliers subform is displayed as a continuous from and
the field SupplierName is set to a hyperlink. The list would look something
like this:
Supplier1
Supplier2
Supplier3 and so on.
When I click any of the above supplier names, the second subform for
MSDSDocs is displayed (I have it set to visible.NotVisible also) BUT it
displays all of the MSDSDocs from all of the Suppliers that are associated
with the chemical on the main form. The linking for the chemical via
(IDPartNo) is working as the MSDSDocs subform only displays the MSDSDocs for
the current chemical record. HOWEVER, I only want it to display the MSDSDocs
for Supplier1 when I click on Supplier1, only the MSDSDocs for Supplier2 when
I click on Supplier2 and so on. I don’t want it to display all of the
MSDSDocs for all of the Suppliers associated with a particular chemical. The
code on my subform Suppliers field SupplierName onclick event is:
stLinkCriteria = "[IDSupplier]='" & Me![IDSupplier] & "' And [IDPartNo]
='" & Me![IDPartNo] & "'"
IDPartNo is from my Chemicals Table, Suppliers Table, and MSDSDocs Table.
Any suggestions? It took me a while just to write this question. If this is
confusing, I posted a screen shot of what I am trying to do at
http://www.chemreport.com/test/helpme.htm
Sorry for the long post but I spent my whole Thanksgiving holiday on this
one. I know I am close?