+ Reply to Thread
Results 1 to 5 of 5

Query that includes NULL values

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Query that includes NULL values

    Hey guys,

    Really really new to Access here.

    Background

    Currently using a collegue's access tool that allows me to RFC connect to SAP and download data from it.
    This data is saved in another Access database.

    Problem

    I have 2 downloaded tables in my database:

    Table 1 with data and codes.

    Capture.JPG

    Table 2 with explanations of these codes.

    Capture2.JPG

    I would like to make a query with information from table 1 and explain the codes of table 1 with table 2's information.
    Important: columns SUBTY and ZZH2ROPMA of both tables are related.

    In my query I do an inner join between the 2 tables for these columns.
    Problem -> if a cell is empty in table 1 (see last row in screenshot) -> it doesn't appear in my query (due to the inner join).
    I tried to do an other join, but I received an error (ambigious outer joins) when I tried to include all values of table 1 and only the matches of table 2.

    Can anyone give me some advice?

    Thanks a bunch!
    Last edited by dunnobe; 04-26-2018 at 09:36 AM.

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Query that includes NULL values

    screenshot of your quer in design view, to see how it linked. Make sure that both fields you are linking should be in same format. i.e Short Text, or Number.
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Re: Query that includes NULL values

    Hey than_gold,

    I think I've solved my problem by doing an outer join to include all values from Table 1 and only the matching ones of Table 2:

    Capture3.JPG

    Thanks for the quick reply and your advice.

  4. #4
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Query that includes NULL values

    That's great

  5. #5
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Query that includes NULL values

    Please close this thread, if you find the solution for your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Power Query showing Null but values exist?
    By taylorsm in forum Excel General
    Replies: 3
    Last Post: 04-10-2018, 10:19 AM
  2. SQL: How do I replace NULL ( empty ) with zero in a sql query. For instance:
    By kbdb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2018, 03:31 PM
  3. [SOLVED] Query to change null/blanks to a number 0
    By MissDB in forum Access Tables & Databases
    Replies: 12
    Last Post: 11-29-2017, 08:56 AM
  4. [SOLVED] Null values get matched in Full Outer Join query. Can we stop this?
    By XLn3wb in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-26-2016, 04:32 AM
  5. How to remove null values from several columns with Power Query?
    By toblju in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2016, 11:08 AM
  6. Replies: 2
    Last Post: 06-19-2013, 04:58 PM
  7. Problems Populating Null Table-Field Values With an Update or Append Query
    By NSTurk725 in forum Access Tables & Databases
    Replies: 3
    Last Post: 06-11-2009, 02:47 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1