Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38

    Oppsite of the 'True' Criteria

    If I want Access to include a specific field I use 'True', how what if I wanted to exclude a specific filed? What would I type in the criteria?



    Thank you for any help I might get

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    What exactly are you trying to do? The opposite of 'True' is usually 'False'

  3. #3
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Hi, Thanks for the reply.

    False isn't an option, so will explain what I'm trying to do.

    I've created a Query in which I select some fields using 'True'. However, I have another field that contains details that I do not want in the Query. So how would I exclude the records in a certain field from my query.

    I hope I've explained that correctly.

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I'm still not sure what you mean by "select some fields using 'True'". If you are in the query wizard, uncheck the checkbox that says "show" and it will use it as a criteria instead of displaying it.

  5. #5
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Umm, I'm confused by your answer.

    Maybe I'm over complicating things.

    Can I add a criteria to a query that will exclude from the query? So, I have a list of people who I do not want to send out information to, the field is a tick-box, so how would I exclude these people from my query?

    Cheers

  6. #6
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    My mistake I thought you were using the query editor. I assume this is on a form. How many people do you have to choose from? Also, are you open to using a multi-select listbox instead of a series of checkboxes?

  7. #7
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Shabz a 'multi-select listbox' sounds very useful, but its not something I've used so far. Would be more than happy to have a go at them. There are about 400 records in the fields, but only a few of them need excluding.

  8. #8
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    So you have 400 checkboxes on your form? How are you displaying this?

  9. #9
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Opps no, 400 records. I have about 25 checkboxes fields.

  10. #10
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Sorry for so many questions, I just want to make sure we're on the same page.

    You're saying checkbox fields. Are these fields in a table or checkbox controls on a form?

  11. #11
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Shab thank you for taking the time to ask

    I'm using a Table.

  12. #12
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    The checkbox is a field in a table? That makes it even easier. Give me the:
    1. table name
    2. names of the fields you want extracted
    3. the name of the field with the checkbox

  13. #13
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Cheers

    Table name: Table1
    Fields to Extract: on hold 'and' don't send
    Field with checkbox (that I would want included, would be for example): Cancer

  14. #14
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Oh. Just add a field to the table as yes/no datatype. You can then either manually check them or use a query to do so. Once you have it set you can query to exclude the checkboxes. So lets say we want to exclude people with Cancer.

    SELECT [On Hold]
    FROM Table1
    WHERE Cancer = False

  15. #15
    alexc333 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    38
    Shabz that sounds excellant and I'm VERY grateful, but its bedtime so I will give it a go tommorow when I'm more with it

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Start and Stop times where condition true
    By cheshire_smile in forum Queries
    Replies: 3
    Last Post: 07-05-2011, 09:59 PM
  2. Yes/No True/False
    By DSTR3 in forum Access
    Replies: 5
    Last Post: 12-04-2010, 05:56 PM
  3. If any of the following are true
    By Steven.Allman in forum Queries
    Replies: 7
    Last Post: 08-30-2010, 06:10 AM
  4. Tried and true programs no longer run
    By Seckert in forum Access
    Replies: 0
    Last Post: 04-07-2009, 01:45 PM
  5. True or false
    By tleec in forum Queries
    Replies: 1
    Last Post: 02-01-2008, 10:41 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