Nathan87
Registered User.
- Local time
- Today, 15:35
- Joined
- Mar 8, 2013
- Messages
- 20
Hello,
I have a question with regards to attaching multiple queries to a related table and then also and attaching an unrelated table.
I'm trying to learn Access by make an inventory database that contains in part an items table, an attachment list table, and a database properties table. The database properties table only has one row of data (folder location of attachments is in the table). The attachments table is a list of attachments that link up with the items and there are 3 different types of attachments possible (picture, receipt, document). There can be multiple attachments for each item.
I have 3 queries that contain totals numbers of attachments for each item. They are Total queries.
Query 1: Number of pictures for item
Query 2: Number of receipts for item
Query 3: Number of documents for item
My problem comes in the 4th query that I'm trying to make that will be used as a source for an item detail form. I would like the query to contain the item tables linked with the 3 count queries and then also link to the database properties table. If I attach the 3 count queries to the items table it work just fine, and if I attach just the database properties table to the item table it works just fine, but for some reason I can't do both in one query. I have it working by using 2 queries (1 to attach count queries to the item table, and then another to attach the properties table), but it seems like I should be able to do it in one query.
Being that I'm just starting trying to learn, I'd like to learn the clean ways of building the database and try to avoid having a bunch of band aids for things that I don't understand how to do. I figure I must be missing some concept here with the query.
Thanks in advance for any advice.
Nathan
I have a question with regards to attaching multiple queries to a related table and then also and attaching an unrelated table.
I'm trying to learn Access by make an inventory database that contains in part an items table, an attachment list table, and a database properties table. The database properties table only has one row of data (folder location of attachments is in the table). The attachments table is a list of attachments that link up with the items and there are 3 different types of attachments possible (picture, receipt, document). There can be multiple attachments for each item.
I have 3 queries that contain totals numbers of attachments for each item. They are Total queries.
Query 1: Number of pictures for item
Query 2: Number of receipts for item
Query 3: Number of documents for item
My problem comes in the 4th query that I'm trying to make that will be used as a source for an item detail form. I would like the query to contain the item tables linked with the 3 count queries and then also link to the database properties table. If I attach the 3 count queries to the items table it work just fine, and if I attach just the database properties table to the item table it works just fine, but for some reason I can't do both in one query. I have it working by using 2 queries (1 to attach count queries to the item table, and then another to attach the properties table), but it seems like I should be able to do it in one query.
Being that I'm just starting trying to learn, I'd like to learn the clean ways of building the database and try to avoid having a bunch of band aids for things that I don't understand how to do. I figure I must be missing some concept here with the query.
Thanks in advance for any advice.
Nathan