juicybeasty
Registered User.
- Local time
- Today, 12:27
- Joined
- Feb 17, 2003
- Messages
- 52
I have a database in which i have to record data relating to companies, with a page for each new company.
One of the pieces of data is key individuals who work for the company, and since this is a repeating field, i have set up a separate table called tbl KeyStaffand linked it to the company table with a one to many relationship.
The main form is columnar and the KeyStaff form is tabular.
There is also a proposal subform also linked to the main form with a one to many relationship, allowing me to record data for several proposals for each company.
The problem i am encountering is in setting up a query requiring the following fields: CoName (from tblCompany), Key Individuals (from tblKeyStaff), Amount (from tblProposal).
I need to know how to set it up so it only comes up with one line for the company and the amount, but as many as necessary for the key individuals, in order to produce a tabular reporting fitting on one page.
I suspect it is to do with joins and probably the DISTINCT keyword, but don't know how to take it further.
Any help appreciated. Thanks
One of the pieces of data is key individuals who work for the company, and since this is a repeating field, i have set up a separate table called tbl KeyStaffand linked it to the company table with a one to many relationship.
The main form is columnar and the KeyStaff form is tabular.
There is also a proposal subform also linked to the main form with a one to many relationship, allowing me to record data for several proposals for each company.
The problem i am encountering is in setting up a query requiring the following fields: CoName (from tblCompany), Key Individuals (from tblKeyStaff), Amount (from tblProposal).
I need to know how to set it up so it only comes up with one line for the company and the amount, but as many as necessary for the key individuals, in order to produce a tabular reporting fitting on one page.
I suspect it is to do with joins and probably the DISTINCT keyword, but don't know how to take it further.
Any help appreciated. Thanks