If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
two relations between same two tables
tblWorkOrders has two fields TakenBy and AssignedTo which are both employees
and are relations to tblEmployees. My forms are working fine, but I'm not sure how to build a report. The Report Wizard only let's me specify Name of tblEmployees once, and I'm not clear on how to specify the two links using the Query Builder (apparently, the Query Builder only specifies the field of the foreign table, and does not specify the field of the main table, so I'm not clear on how to specify both fields of the main table). Helpful hints on how to include two unique employee names in a WorkOrder report would be greatly appreciated. Best, Christopher |
#2
|
|||
|
|||
Christopher Glaeser wrote:
tblWorkOrders has two fields TakenBy and AssignedTo which are both employees and are relations to tblEmployees. My forms are working fine, but I'm not sure how to build a report. The Report Wizard only let's me specify Name of tblEmployees once, and I'm not clear on how to specify the two links using the Query Builder (apparently, the Query Builder only specifies the field of the foreign table, and does not specify the field of the main table, so I'm not clear on how to specify both fields of the main table). Helpful hints on how to include two unique employee names in a WorkOrder report would be greatly appreciated. Create the query for the report first. Add the employees table twice. Join the work orders table to one of the employees tables from the TakenBy field and Join the other employees table to the AssignedTo field. -- Marsh MVP [MS Access] |
#3
|
|||
|
|||
Create the query for the report first. Add the employees
table twice. Join the work orders table to one of the employees tables from the TakenBy field and Join the other employees table to the AssignedTo field. Thanks for the quick response. I'll give it a try. I recently purchased the AppDev Access 2000 training CDs, and if I understood the chapter on Reports, they suggested creating queries within the Report rather than basing the Report on another Query. They claimed the Report query has the same power as a Query. Does using a Query in my example offer better ease-of-use? Or, are there queries that can not be done in a Report that require a Query? Best, Christopher |
#4
|
|||
|
|||
Christopher Glaeser wrote:
Create the query for the report first. Add the employees table twice. Join the work orders table to one of the employees tables from the TakenBy field and Join the other employees table to the AssignedTo field. Thanks for the quick response. I'll give it a try. I recently purchased the AppDev Access 2000 training CDs, and if I understood the chapter on Reports, they suggested creating queries within the Report rather than basing the Report on another Query. They claimed the Report query has the same power as a Query. Does using a Query in my example offer better ease-of-use? Or, are there queries that can not be done in a Report that require a Query? It doesn't matter. Creating the query by using the Build button in the report's RecordSource property is just a roundabout way of getting to the query designer. I think it's easier to test the query if you start from the query designer. -- Marsh MVP [MS Access] |
#5
|
|||
|
|||
I think it's easier to test the query if you start from the query
designer. OK, that makes sense. I need easier. Thanks again. Best, Christopher |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Relationship design problem with multiple tables | Don | New Users | 3 | November 24th, 2004 06:27 PM |
Help with Junction Tables and Subforms | Maureen Smith | New Users | 11 | September 23rd, 2004 02:39 PM |
Mutliple Tables lookup? | Westley | Database Design | 4 | June 15th, 2004 01:07 AM |
searching for "join tables" and "join word tables" | Uncle Bill | Tables | 1 | June 11th, 2004 09:33 PM |
How do I design a database based on the information that will be stored? - Copy of Tables and hirearchies.zip (0/1) | Jim | Database Design | 1 | June 1st, 2004 01:44 PM |