Results 1 to 5 of 5
  1. #1
    myspoonistoobig is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3

    Combining two tables into a new table

    Hello,

    So I have two tables that I'm trying to combine into a new table using values from both tables.

    My first table contains export data that I pull from a program other than access. This contains customer info.

    The second table contains records of checks written to these customers.

    Both tables contain the field 'issue number'. I have established a relationship between the two tables using this field.

    I'm trying to combine the tables so that I can see everything from my customer info table, and check numbers where applicable. Not every record in my customer info table has been assigned a check number.

    When I try to run a query to bring these two tables together, it only pulls records that have been assigned a check number... I need to see everything all together.



    I tried using criteria 'is null' or 'is not null' and I get the same results.

    I get updated data twice a week, and will need to update this new table every time I get new data, otherwise I would just do it manually

    Any help would be appreciated.

    Thank you!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Post the query SQL statement. Probably need to change INNER JOIN to LEFT or RIGHT.

    This is not actually a table, it is a query.
    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
    myspoonistoobig is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3
    SELECT PriorityRawData.ID, PriorityRawData.Store, PriorityRawData.Service, PriorityRawData.InquiryNumber, PriorityRawData.ClosedDate, PriorityRawData.Responsible, PriorityRawData.LastName, PriorityRawData.Firstname, PriorityRawData.Address, PriorityRawData.Address2, PriorityRawData.City, PriorityRawData.State, PriorityRawData.Zip, PriorityRawData.Phone, PriorityRawData.CustomerSatisfaction, PriorityRawData.PaymentType, PriorityRawData.Status, PriorityRawData.DeclaredValue, PriorityRawData.Paid, PriorityRawData.Writeoff, PriorityRawData.AdminProcessDate, PriorityRawData.AdminNotes, CheckAssigning.CheckNumber
    FROM PriorityRawData INNER JOIN CheckAssigning ON PriorityRawData.InquiryNumber = CheckAssigning.InquiryNumber
    WHERE (((CheckAssigning.CheckNumber) Is Null)) OR (((CheckAssigning.CheckNumber) Is Not Null));

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yep, suggest you change to LEFT or RIGHT, probably RIGHT if you want to show all InquiryNumber even if there is no associated check, then remove the filter criteria.
    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.

  5. #5
    myspoonistoobig is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3
    This absolutely solved my problem.

    THANK YOU

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

Similar Threads

  1. Combining Two Tables into One
    By kvn5x4 in forum Import/Export Data
    Replies: 5
    Last Post: 05-14-2014, 11:23 AM
  2. Combining two tables to one
    By Jerseynjphillypa in forum Queries
    Replies: 3
    Last Post: 06-22-2012, 12:06 PM
  3. Replies: 6
    Last Post: 01-13-2012, 09:17 AM
  4. Combining Tables into one table
    By softspoken in forum Access
    Replies: 2
    Last Post: 04-22-2010, 02:37 PM
  5. Combining Tables
    By king_bowzow in forum Queries
    Replies: 0
    Last Post: 08-05-2009, 10:15 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