Results 1 to 5 of 5
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    How to exclude records in a query combo box

    Hello

    I have a form where my users enter data. The form has one combo Box where my user would choice from a list. I would like to run a query that would exclude a word from the combo box.


    If the combo box has three types of payment cash, check and credit card. I would like for cash to be excluded. So when i run query it would only gave me checks and credit card.


    Thanks

  2. #2
    troggernaught is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    5
    Where is the combobox getting its data from? Do you always need to exclude cash or only sometimes?

    Assuming your combobox is getting its data from a table and you always want to exclude cash, then you just have to modify the combobox's recordsource. For example, SELECT * FROM paymentmethods WHERE method<>'cash'

    You'll have to provide more info to get a better answer, though.

  3. #3
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Troggernaught

    Combo box is getting its data form a table. Yes i always need to exculde cash.

    Thank you

  4. #4
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Sorry i really don't understand what i have to do. I'm new to access.


    Thank you

  5. #5
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Thank you
    I got it to work i used <>"1".

    Thank you

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

Similar Threads

  1. Replies: 2
    Last Post: 05-08-2013, 03:37 AM
  2. Replies: 2
    Last Post: 10-08-2011, 06:33 PM
  3. Replies: 1
    Last Post: 03-09-2011, 02:04 AM
  4. Exclude values that appear in a certain table
    By DB2010MN26 in forum Queries
    Replies: 4
    Last Post: 09-08-2010, 02:33 PM
  5. Exclude records within same criteria
    By brooke48 in forum Queries
    Replies: 14
    Last Post: 05-15-2010, 02:15 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