Results 1 to 3 of 3

Please help with formula

  1. #1
    JeanZander is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    12

    Lightbulb Please help with formula

    I would appreciate any suggestions to help my formula to work.



    I am trying sum acres of property acquired by company under category 'TR' (for transit) then subtract property we disposed of in that same category; however when I add in the category for disposed in the formula, it doesn't work. The second formula works when I remove the 2nd category in the formula, but then it subtracts disposed property for all categories.


    =DSum("[Fee SqFt]","[UTA Property Database]","[Category]='TR'")/43560-DSum("[Disp SqFt]","[UTA Property Database]",”[Category]=’TR’”)/43560 >Doesn’t work

    =DSum("[Fee SqFt]","[UTA Property Database]","[Category]='TR'")/43560-DSum("[Disp SqFt]","[UTA Property Database]")/43560 >Works, but doesn't give right answer because it subtracts disposed for all categories.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,254
    Expression looks fine to me. Would have to review data if you want to provide. Follow instructions at bottom of my post.
    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
    JeanZander is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    12
    Thanks, I don't know why it doesn't work either, but I'll try your link.

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

Similar Threads

  1. Please help with this formula.
    By vickan240sx in forum Access
    Replies: 3
    Last Post: 09-17-2012, 03:44 PM
  2. Formula
    By Ray67 in forum Queries
    Replies: 53
    Last Post: 08-09-2012, 01:56 AM
  3. Formula mod help
    By jcaptchaos2 in forum Access
    Replies: 2
    Last Post: 04-25-2011, 02:55 PM
  4. SQL Formula to Sum Itself
    By Scorpio11 in forum Access
    Replies: 1
    Last Post: 02-19-2011, 11:22 AM
  5. Formula
    By hschrunk in forum Access
    Replies: 3
    Last Post: 05-18-2010, 01:40 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
  •  
Tech Forums: Microsoft Office Forums