Results 1 to 2 of 2

Thread: Access: If I have a query can I sum the value of one of its fields on a Form?
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular gheyman's Avatar
    Join Date
    Nov 2005
    Location
    Orlando, FL USA
    Posts
    1,632
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Access: If I have a query can I sum the value of one of its fields on a Form?

    I have a Query "qry_OnTimeDelivery_MetricData" in the query I have a column named Month01_Active. That field has either a 1, 0 or nothing in it for each record. Can I create a Form and have a field on it that sums that column (Month01_Active)?

    Thanks
    G Heyman
    Northrop Grumman - Laser Systems'
    Apopka, FL

  2. #2
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,474
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Access: If I have a query can I sum the value of one of its fields on a Form?

    a dsum function should work:

    =DSum( [Month01_Active], [qry_OnTimeDelivery_MetricData], '[Month01_Active] = 1' )

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •