Skip to Content
author's profile photo Former Member
Former Member

Referencing the same table multiple times

Dear all,

how can I insert information into a report from a table that is referenced from another table multiple times?

Example:

Assume you have a table where each row has two fields, each containing the ID of a (different) employee. This ID is the key to the employee table that holds the first and last name of the associated employee. Now I want to include in a detail section the first and last names of both employees associated with the row.

How can I accomplish that?

If I just insert the fields for first and last name two times into the report, I always get the information for the employee associated with the field which I have connected to the employee table using the database wizard. However, if I define a second connection to the employee table, I do not receive any values at all.

Many thanks for any advice,

AnDi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 10:33 AM

    Just add the Employee table in again. Crystal will warn you that table already exists but just accept.

    Employee table will be added with suffix _1, link this to second Emplyee ID field and then add data to as required.

    Ian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 11:36 AM

    Thanks Ian,

    it works perfectly.

    Regards,

    AnDi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.