Results 1 to 5 of 5
  1. #1
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    if found

    I have a field in a query that "Meal1: [Query Make Full name]![Accredited,Guest,Visitor]="Accredited"


    If it finds "accredited" in the field it puts a -1 in the "meal1:" field or a 0 if not found.
    How do I have it put a 1 and not a -1 in the field if found?

  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,518
    Options include an IIf() function and wrapping that in the Abs() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    OK, I will try that.
    Thanks

  4. #4
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    Yap that worked

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    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. Specified SQL server not found
    By danparker in forum Access
    Replies: 3
    Last Post: 10-25-2011, 03:23 PM
  2. If Not Found, then New?
    By gracysaurus in forum Programming
    Replies: 1
    Last Post: 08-17-2010, 04:58 PM
  3. Query not found, but it is there
    By Gdm in forum Queries
    Replies: 5
    Last Post: 05-21-2010, 05:59 AM
  4. Item not found
    By thart21 in forum Programming
    Replies: 7
    Last Post: 04-14-2010, 10:41 AM
  5. Module not found
    By nooby in forum Modules
    Replies: 1
    Last Post: 12-02-2009, 02:20 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