P
Paterson10987
I am working on basically an inventory. I have tblParts for all inherent
part information, and then tables tblSuppliers (to hold supplier, part#,
price, lead time) and tblLocation (details what asset(s) and where part is
used). The two tables may have multiple records joined to one record in
tblParts [ID] field by their [PartID] field. I'm trying to create an easy
form to search through the parts.
I started with unbound controls that are used to filter my subform,
including by its locations and supplier info. The subform has a data source
that is a query simply joining the three tables and displays the datasheet. I
can click a button that takes me to a seperate form to edit the selected
record. It works great but as i continue to add more information in its
becoming really annoying. Say I have a part that has two suppliers and is
used at 7 locations.. I now have 14 separate entries for the same part.
Now I would like to only show a list of all the parts (and only one copy of
it) and, when selected, display its respective supplier and location info.
I can do this by bounding my form to tblParts, and if I display using
continuous forms I can leave my filtering stuff in the header and put
subforms in the footer.
Thats fine and easy, but then I can't search for parts by supplier and
location info, just by name or description.
So is there someway I can filter tblParts by fields in its joining tables,
but only show one copy of the part? Or if anyone can come up with a much
better solution for easily finding my part, including restructuring my
tables, queries or what have you, I'm very open to ideas.
Thanks
part information, and then tables tblSuppliers (to hold supplier, part#,
price, lead time) and tblLocation (details what asset(s) and where part is
used). The two tables may have multiple records joined to one record in
tblParts [ID] field by their [PartID] field. I'm trying to create an easy
form to search through the parts.
I started with unbound controls that are used to filter my subform,
including by its locations and supplier info. The subform has a data source
that is a query simply joining the three tables and displays the datasheet. I
can click a button that takes me to a seperate form to edit the selected
record. It works great but as i continue to add more information in its
becoming really annoying. Say I have a part that has two suppliers and is
used at 7 locations.. I now have 14 separate entries for the same part.
Now I would like to only show a list of all the parts (and only one copy of
it) and, when selected, display its respective supplier and location info.
I can do this by bounding my form to tblParts, and if I display using
continuous forms I can leave my filtering stuff in the header and put
subforms in the footer.
Thats fine and easy, but then I can't search for parts by supplier and
location info, just by name or description.
So is there someway I can filter tblParts by fields in its joining tables,
but only show one copy of the part? Or if anyone can come up with a much
better solution for easily finding my part, including restructuring my
tables, queries or what have you, I'm very open to ideas.
Thanks