Results 1 to 5 of 5
  1. #1
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295

    Quierying for blank entries

    Good Afternoon all.



    I would be grateful if someone can advise me on a query problem: I want to make a query based on a text field which contains some blank entries. I am unsuccessful querying for results with blank values. My 3 attempt at queries were: 1. "" ,2. ="", and 3. Not "cancel", Not "undersubscribe"

    in case 1 and 2 nothing was returned.

    Is this a difficult problem to solve.

    Thanks

    George

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Code:
    ="" or Is Null
    Should return all blank or null entries.
    If it does now, then I expect that some of those entries really aren't blank, but have some spaces or other special characters in them.
    That can easily be proven using the LEN function to find the length of each field. If it is one or greater, there is something in there (whether you can see it or not!).

  3. #3
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295
    ="" did not work
    Is Null worked

    Thank you JoeM

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    No, I meant to include both of them in a single criteria statement, just like I have it written (not one or the other!).
    Blank and Null do not mean the same thing in all database programs. Writing the criteria like I have showed you will cover all the bases!

  5. #5
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295
    Will do. I understand.

    Thanks.

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

Similar Threads

  1. Advise needed blank database or blank Web Database
    By Derrick T. Davidson in forum Access
    Replies: 0
    Last Post: 04-25-2013, 09:13 PM
  2. Replies: 5
    Last Post: 04-23-2012, 12:40 PM
  3. Query to show blank entries
    By jo15765 in forum Queries
    Replies: 1
    Last Post: 12-09-2010, 08:15 AM
  4. Blank spaces at start of entries
    By rcmglover in forum Access
    Replies: 2
    Last Post: 03-26-2010, 10:42 PM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 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