Results 1 to 7 of 7
  1. #1
    accesshelpme is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    18

    report help

    i have never used a report in access before. I am trying to have all my client information desplay in one report. I want 4 columns in the report. client account name & version from a query/ and products and vendors from a different table not in the query. However some clients are not in the product vender table. I still want these clients in my report, but ide just like the product and vendor columns left blank.


    Currently its just showing the ones located in the product vendor table in the report and not showing any of the ones that are not.

    here is what i ahve as the rowsource for the report:

    SELECT [Customer Account Details].[Client_Account_Name], [Client ProdVend].[Products], [Client ProdVend].[Vendors], [Customer Account Details].[Universe_Release_Version] FROM [Customer Account Details] INNER JOIN [Client ProdVend] ON [Customer Account Details].[Client_Account_Name] =[Client ProdVend].[Client_Account_Name];


    any help would be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Needs to be Right or Left join, not Inner. In the query designer double click the line connecting the tables and select the join type 'show all records from Clients ...'.
    Last edited by June7; 05-14-2012 at 04:03 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    accesshelpme is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    18
    i cant do that because the product/vendor table is not in the query. I cant add it to the query becaus of the way the datanase works.

  4. #4
    accesshelpme is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    18
    my row source now looks like this...still wont show a client if he is not in the prodvend table(so if he doesnt have a product or vender)
    SELECT [Customer Account Details].[Client_Account_Name], [Customer Account Details].[Universe_Release_Version], [Client ProdVend].[Products], [Client ProdVend].[Vendors] FROM [Customer Account Details] INNER JOIN [Client ProdVend] ON [Customer Account Details].[Client_Account_Name] =[Client ProdVend].[Client_Account_Name];

  5. #5
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    In your SQL above, change INNER JOIN to LEFT JOIN - that should work.

    HTH

    John

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Why can't you click on the link line? The query already shows a JOIN. There has to be a link line.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    accesshelpme is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    18
    oko the left hoin thing worked, thanks to both of u for your help!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 03-07-2012, 09:00 AM
  2. Replies: 4
    Last Post: 12-13-2010, 05:33 PM
  3. Replies: 2
    Last Post: 08-25-2010, 01:42 PM
  4. Replies: 3
    Last Post: 05-21-2010, 03:57 PM
  5. Replies: 0
    Last Post: 10-24-2008, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums