Results 1 to 3 of 3
  1. #1
    chrisy is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    2

    exclude field in query

    I need to create an access query for a directory.
    In the database I ask question yes/no if they want their phone # excluded in the directory listing.
    How or what is the best way to do this? formula..etc

  2. #2
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by chrisy View Post
    I need to create an access query for a directory.
    In the database I ask question yes/no if they want their phone # excluded in the directory listing.
    How or what is the best way to do this? formula..etc
    Create a new column in the query. Place the following:
    sPhone: IIf(YourYesNoField=True, YourPhoneField, "")

    Using the IIf function, the field will list the phone no if the "yes" is chosen and a blank if "no" is chosen

  3. #3
    chrisy is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    2
    Quote Originally Posted by Toyman View Post
    Create a new column in the query. Place the following:
    sPhone: IIf(YourYesNoField=True, YourPhoneField, "")

    Using the IIf function, the field will list the phone no if the "yes" is chosen and a blank if "no" is chosen
    Think I am on the right track but had to use false. I haven't used Access alot so I am stumbling through this. Thanks!

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

Similar Threads

  1. Replies: 4
    Last Post: 10-25-2011, 10:07 PM
  2. Replies: 2
    Last Post: 10-08-2011, 06:33 PM
  3. Exclude values that appear in a certain table
    By DB2010MN26 in forum Queries
    Replies: 4
    Last Post: 09-08-2010, 02:33 PM
  4. Exclude rows to get to data/field names
    By The Stig in forum Access
    Replies: 1
    Last Post: 06-27-2010, 09:36 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