Results 1 to 5 of 5
  1. #1
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30

    Basic Query Sort Question

    Sup Access Forums,

    I have a query like this...

    Field: Item Field: Description
    Table: Item_Table Table: Item_Table
    Criteria: <>"Do Not Sell"

    The above outputs all items who's descriptions are not Do Not Sell. Pretty simple.

    What I want to do, is filter out from the item field now, something like this...

    Field: Item
    Table: Item_Table
    Criteria: <>"BR*"



    But the above isn't working, and I'm very confused why. Can you not use wild cards to sort queries like this?

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In your criteria try: Not Like "BR" & "*"

    Alan

  3. #3
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    Quote Originally Posted by alansidman View Post
    In your criteria try: Not Like "BR" & "*"

    Alan
    Worked like a charm!

    Would you mind explaining why the <> method worked in one area but not another? I'm quite confused by that.

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In order to use a wildcard in your criteria, you need to use the Like or Not Like functions within Access. The not equal function does not operate with wildcards.

  5. #5
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    Thanks so much Alan!

    Give a man a fish etc etc.

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

Similar Threads

  1. Basic Question
    By za20001 in forum Queries
    Replies: 2
    Last Post: 04-11-2011, 03:59 PM
  2. basic (sorry) question
    By wokeeffe in forum Database Design
    Replies: 1
    Last Post: 12-21-2010, 11:20 AM
  3. Basic query design question
    By megabrown in forum Queries
    Replies: 1
    Last Post: 12-15-2010, 09:10 AM
  4. Really basic question
    By jimlaw in forum Forms
    Replies: 1
    Last Post: 07-27-2009, 07:20 AM
  5. Basic Question
    By chris11590 in forum Forms
    Replies: 0
    Last Post: 08-04-2008, 05:57 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