Results 1 to 2 of 2

Thread: [RESOLVED] [Crystal]Custom data in Join

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Resolved [RESOLVED] [Crystal]Custom data in Join

    I have a query that pulls the data I want:

    Code:
    SELECT     a.Name, c.Description
    FROM         AMGR_Client_Tbl AS a LEFT OUTER JOIN
                          AMGR_User_Fields_Tbl AS b ON a.Client_Id = b.Client_Id AND a.Contact_Number = b.Contact_Number AND b.Type_Id = '5' LEFT OUTER JOIN
                          AMGR_User_Field_Defs_Tbl AS c ON b.Type_Id = c.Type_Id AND b.Code_Id = c.Code_Id
    WHERE     (a.Record_Type = '31')
    I have it reproduced in Crystal Reports with the exception of

    Code:
    b.Type_Id = '5'
    In the first join. Is there a way to hard code this value into crystal reports for the join or will I have to create a view and run the report off that?

  2. #2

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: [Crystal]Custom data in Join

    As far as I could find, you cannot do it in the database expert.

    I accomplished it by going in and creating a new connection. Then, within the connection I added a command, which I pasted my query in and I was able to copy the fields from there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width