A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

two relations between same two tables



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2004, 06:03 PM
Christopher Glaeser
external usenet poster
 
Posts: n/a
Default 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  
Old November 24th, 2004, 07:32 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

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  
Old November 24th, 2004, 10:50 PM
Christopher Glaeser
external usenet poster
 
Posts: n/a
Default

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  
Old November 25th, 2004, 12:23 AM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

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  
Old November 25th, 2004, 12:46 AM
Christopher Glaeser
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.