Results 1 to 3 of 3
  1. #1
    lkyinc is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    10

    Need an calculated expression for an access 2016 report

    I am a blood drive leader, I'm trying to extract certain data from a table of all our blood drivers.



    The three fields being used are: [unitscollected] (numberical), [tag] (text), and [successfuldonation] (text)

    I need an expression for a calculated field in the report footer. Here's what I have tried: =Sum([unitscollected]) (iif([successfuldonation] ="YES" AND [tag] = "P", "*", Null)))

    I keep getting syntax error "operator without an operand"

    I appreciate your help

    Kent

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    =Sum(IIf([successfuldonation] = "Yes" AND [tag] = "P", [unitscollected], Null))
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    lkyinc is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    10
    Quote Originally Posted by June7 View Post
    =Sum(IIf([successfuldonation] = "Yes" AND [tag] = "P", [unitscollected], Null))
    It works great. Thank you. Kent

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

Similar Threads

  1. Replies: 7
    Last Post: 12-05-2022, 02:18 PM
  2. Replies: 3
    Last Post: 04-19-2022, 12:21 PM
  3. Replies: 6
    Last Post: 01-01-2018, 10:41 AM
  4. Replies: 4
    Last Post: 03-01-2016, 12:04 PM
  5. Calculated expression in report
    By Grizz2 in forum Reports
    Replies: 3
    Last Post: 12-20-2010, 08:50 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