Results 1 to 3 of 3
  1. #1
    Kbiddle is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3

    Can this be done in Access?

    I have a situation at work where I have a query based on a couple of tables and a report based on the query. I've attached a sample database of what I have, and when the report is run, it sums the quantity in the query for each of the headers. What I want to do is have some kind of an if statement that says if the Electric Awning is checked on Table1, add only the E12' Awning and if is not checked add only the 12' Awning. Can this be done? Sorry, I'm a new user to access and have been tasked with figuring out how to do this. I appreciate any help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Use these expressions:
    =Sum(IIf([ELECTRIC AWNING]=False,[12' Awning],0))
    =Sum(IIf([ELECTRIC AWNING]=True,[E12' Awning],0))
    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
    Kbiddle is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3
    Thanks that worked.

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

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