Results 1 to 2 of 2
  1. #1
    timboellis is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    1

    Access query

    I have a vary large 200m database with over 200 tables however I need to create a CSV, XLS of a selection of the tables however the issue is this.



    If I just now quote 2 of my tables called Coredetails and occupationdetails.

    If I do a query on the coredetails this given me 3075 results.

    If I do a query on occupationdetails this gives me 2366 results

    however if i combine the details this gives me 2366 results.

    However I want all the results so expecting 3075

    can someone advise what i am doing wrong here or how to get all the results.

    I am looking to get info out of approx 5 different tables , some tables will have no info for certain clients and others will

    Thanks for any help

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The default for the query builder is an INNER JOIN which requires data in both tables for selection. Change to an OUTER JOIN (Left or Right) and you should get the results for which you are looking.

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

Similar Threads

  1. Sql server query to MS access query
    By blazixinfo@yahoo.com in forum Queries
    Replies: 0
    Last Post: 07-07-2009, 08:12 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