Results 1 to 3 of 3
  1. #1
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    57

    query that will ignore a certain word


    Hi I have lots of data in a table in different fields and I would like to run a query that will return everything apart from all data fields with the word Null in.
    Is this easy or shall I look to reorganise another way?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    "lots of data in a table..." makes me think you should do some research on database and table design.
    Here's a tutorial that you have to work through, but you will learn about design and normalization.

    NULL has special meaning in databases.

    Good luck.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    certainly if you can reorganize your data such that the word 'Null' is always found in a single field/column - that would be much more simple. The word can appear in other fields but as long as it is always in 1 field - then you only need to rely on that 1 field for your correct query.

    as it is now you must set up a set of sequential queries; in each you take a field that might have the word Null and must apply the criteria: <> Null
    (possibly with wild cards if the word Null is not the only word in the field i.e. *Null* )

    you then have to use query1 as the source for query2 that selects a new field to have the Null criteria...and then repeat that over and over until you've covered every field that might have a null in it....

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

Similar Threads

  1. Ignore blank rows in a UNION ALL query
    By Access_Novice in forum Queries
    Replies: 1
    Last Post: 12-20-2014, 08:36 PM
  2. if Form is closed ignore Query criteria
    By quicova in forum Queries
    Replies: 3
    Last Post: 09-20-2013, 04:50 PM
  3. Lowercase and ignore
    By rmd62163 in forum Access
    Replies: 7
    Last Post: 07-31-2013, 06:35 PM
  4. Replies: 3
    Last Post: 05-10-2013, 10:49 PM
  5. Ignore blank on query expression.
    By zero3ree in forum Access
    Replies: 3
    Last Post: 06-11-2012, 11:22 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