Results 1 to 4 of 4
  1. #1
    NISMOJim is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    273

    Sum in Form footer

    I hope this has a simple solution, but I guess I'm even simpler.



    I have a database for a tire warehouse. The main table contains fields like;

    TR (text) - Tire or rim
    Qty (number) - Number of tires/rims in the shipment
    Mfr (text) - Manufacturer
    etc...

    I built a query with the fields from the Inventory table, and added 2 more fields;

    TireQty: IIf(([TR]="T"),[Qty],0)
    RimQty: IIf(([TR]="R"),[Qty],0)

    The inventory is displayed on a continuous form that has filtering options in the header. Everything is displaying correctly in the detail section of the form. The problem comes when I added 2 textboxes in the form footer to display the total amounts...

    Name: txtTireTtl Control Source: =Sum([txtTireQty])
    Name: txtRimTtl Control Source: =Sum([txtRimQty])

    Both of these textboxes show "#Error" in Form View.

    When I first did this, I swear everything was working fine. The boxes gave me a grand total of the inventory, and when I applied the filters, they gave me the correct totals of the filtered recordsets. When I came back to work the next day, all I got was the error in the boxes. I have been searching and trying different things for 3 days now, and have no idea what happened. Does anyone else out there have any insight where I should be looking? Any help will be greatly appreciated.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    superficial first glance; you are summing ([txtTireQty])

    but the record source name is defined as TireQty ....not txtTireQty

  3. #3
    NISMOJim is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    273
    TireQty is the name of the recordsource for the txtTireQty textbox that is in the detail section of the form. This is the textbox I want to sum in the footer.

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    have a try with: =Sum([TireQty])

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

Similar Threads

  1. Footer Totals
    By allenjasonbrown@gmail.com in forum Reports
    Replies: 3
    Last Post: 09-30-2010, 09:40 AM
  2. Replies: 1
    Last Post: 07-22-2010, 05:55 AM
  3. Page Footer
    By jamil_kwi in forum Access
    Replies: 1
    Last Post: 05-31-2010, 04:02 AM
  4. sum in form footer
    By dean in forum Access
    Replies: 1
    Last Post: 09-11-2009, 02:35 AM
  5. Need help with values in the footer
    By allochthonous in forum Reports
    Replies: 0
    Last Post: 03-03-2007, 08:20 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