Solved How to choose data from 2 different tables?

asteropi

Member
Local time
Today, 09:13
Joined
Jun 2, 2024
Messages
122
So I have a Supplies table which is my non-cooking materials like bottles, jars etc
And I have an Ingredients table which is my cooking ingredients like oils, butters etc

And I have a Purchases Table where I input what purchases I make for the company. How can I set it that when I purchase an item it will be able to find data from 2 tables, both the supplies and the ingredients table? (right now it's only for the supplies)



1729158481864.png
 
Put the data all in one table and have a field that identifies the ProductType
e.g. Supplies/Ingredients/Third Category you haven't though of yet
 
Like Utensils perhaps?
 
Put the data all in one table and have a field that identifies the ProductType
e.g. Supplies/Ingredients/Third Category you haven't though of yet
That would make it very hard to find what I'm looking for when checking them on the list
 
create a Union query on your 2 tables and use it for your combobox selection.
 
create a Union query on your 2 tables and use it for your combobox selection.
I found how to choose the different materials. The problem is that when it goes to store it in the purchase details it recreates inputs, like it's a new material
 
That would make it very hard to find what I'm looking for when checking them on the list
Not really, as you would filter for the category, which would just be the same result as if they were in their own table?
 
That would make it very hard to find what I'm looking for when checking them on the list
No, it wouldn't. Change your queries in the appropriate places to look for a specific type. That will get you the exact list you now get from each single table.
 
I was talking about a combo box in a form
All of my combo box RowSources are in a single table of tables. Therefore every combo has a RowSource that is a query that selects the necessary data from the single table using a Where clause. That was the suggestion Minty made. Do you think Amazon keeps a separate table for each category of items they sell?
 

Users who are viewing this thread

Back
Top Bottom