Results 1 to 4 of 4
  1. #1
    Accesfreak is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    2

    Question Show when object field is null

    Hi all,



    I have two tables. 'Table1' with names (and additional information) and 'table2' with images. I need a query that shows [table1].[name] where [table2].[picture] not excists. So far, I have:

    SELECT [table1].[name] FROM [table2] LEFT OUTER JOIN [table1] ON [table2].[personID] = [table1].[personID] WHERE [table2].[picture] is null;

    It does not work... Tried lots of things. Inner joins, where ... is ''.
    Anybody a sugggestion?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I think you want RIGHT JOIN instead of LEFT OUTER JOIN, but I've never tried with a attachment field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Accesfreak is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    I think you want RIGHT JOIN instead of LEFT OUTER JOIN, but I've never tried with a attachment field.
    thx! works perfect.


    (How could I close this topic or say it is solved??)

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Happy to help. You can mark it solved in Thread Tools at the top of the thread.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. IF ID Is not Null show TYPE from other table
    By superjeff in forum Access
    Replies: 5
    Last Post: 09-14-2012, 09:45 PM
  2. Query Help - Show field if another field is null
    By lukekonrad in forum Access
    Replies: 1
    Last Post: 03-05-2012, 04:02 PM
  3. Do not show null records
    By brobb56 in forum Forms
    Replies: 1
    Last Post: 09-23-2011, 02:29 PM
  4. Show object only if data available
    By 1eye1vision in forum Forms
    Replies: 41
    Last Post: 07-30-2011, 02:44 PM
  5. Combo box Value Must Show an object: How To
    By vdanelia in forum Forms
    Replies: 6
    Last Post: 02-03-2011, 04:16 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