Results 1 to 2 of 2
  1. #1
    cork is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2016
    Posts
    1

    Query to add strings


    Right now i have a query to add 1 to the count every time it detect a certain string.. I was wondering if there was a way to add another string onto that query to also add to the same count?

    Provisional Bags: Sum(IIf([BagType]="Provisional Ballots",1,0))

    This is the current syntax i'm using. any help would be appreciated!

    Cheers!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    try something like

    Provisional Bags: Sum(IIf([BagType]="Provisional Ballots" OR [BagType]="Something else",1,0))

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

Similar Threads

  1. Replies: 3
    Last Post: 01-19-2016, 07:39 PM
  2. how to extract strings in a query
    By amai in forum Tutorials
    Replies: 4
    Last Post: 11-21-2015, 05:33 AM
  3. Total Query: Sum of Strings
    By budder8818 in forum Queries
    Replies: 5
    Last Post: 05-10-2014, 07:22 PM
  4. Replies: 1
    Last Post: 09-16-2013, 04:35 PM
  5. Replies: 1
    Last Post: 07-14-2008, 12: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