Results 1 to 3 of 3
  1. #1
    biocentrism is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    7

    SELECT DISTINCT but exclude "None"

    I am trying to write a SELECT DISTINCT query which excludes any result that = "None".



    This is what I have written but it does not work:
    Code:
    SQL = "SELECT DISTINCT [Status] FROM TblMembership WHERE [Status] <> 'None""

    Any ideas how to do this?

    Thank you.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    'does not work' is not very helpful. It's almost the same as saying 'My washing machine isn't working - can you tell me why?'

    what error messages are you getting? or it returns the wrong thing or what? The code you have posted on the other forum is different and should work. The code here will generate an error

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

Similar Threads

  1. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  2. Replies: 1
    Last Post: 09-09-2014, 11:29 PM
  3. Triple Exclude / "Unmatched" Query | Access 2010
    By DavidMichaelangelo in forum Queries
    Replies: 4
    Last Post: 04-17-2014, 03:43 PM
  4. Replies: 10
    Last Post: 10-18-2012, 08:10 AM
  5. Replies: 1
    Last Post: 10-08-2012, 09:01 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