Results 1 to 2 of 2
  1. #1
    hellfire45 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    24

    How to capture if Multiple columns are not blank?

    Let's say I have three columns; apples, berries and bananas. I need to capture, either using the GUI or the SQL if any of those are not null, then bring that row back. So the rows that come back from the query are only ones where one of those three columns is not null.

    In excel it would be if(or(apples<>"",berries<>"",bananas<>""),X,Y)



    Thank you so much!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Try criteria: Not Is Null

    under each field but on separate lines so the OR operator is invoked.

    3 fields for same type of data (fruit) sounds like non-normalized structure.
    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-15-2014, 06:15 AM
  2. Replies: 3
    Last Post: 10-15-2013, 10:54 AM
  3. Replies: 17
    Last Post: 06-10-2013, 06:49 AM
  4. Replies: 3
    Last Post: 04-10-2012, 02:36 PM
  5. Primary key multiplynig in blank columns
    By desiinusa123 in forum Queries
    Replies: 0
    Last Post: 03-12-2009, 04:29 PM

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