Results 1 to 4 of 4
  1. #1
    Bongobob21 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    29

    Exclude Value in Row number two from Combobox

    Hi,

    I want to use a Combobox for selcting a search criteria. It should pull all distinct values from a ceratin column, but not the value which is written in the second row. This that possible?
    Currently I am using this code as the row source: SELECT DISTINCT [Table1].Name FROM [Table1];



    I need the second row in the table as a orentation for something else but it shouldn"t be displayed in the selection for the combobox.

    thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can add

    WHERE [Name] <> "Whatever"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bongobob21 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    29
    Great! Works perfectly

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Exclude any that match
    By WithoutPause in forum Queries
    Replies: 1
    Last Post: 09-23-2014, 09:53 PM
  2. Exclude IDs in grouped query
    By Ruegen in forum Queries
    Replies: 2
    Last Post: 09-02-2014, 09:27 PM
  3. Combobox subform filter: text field vs. number field
    By Alhassani in forum Programming
    Replies: 2
    Last Post: 07-08-2014, 10:04 AM
  4. Combobox returns multiple fields but not the ID number
    By pattrickcolin in forum Queries
    Replies: 5
    Last Post: 06-03-2014, 12:37 PM
  5. How to exclude an area code in a phone number?
    By indians207 in forum Queries
    Replies: 11
    Last Post: 11-21-2013, 05:59 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