Results 1 to 6 of 6
  1. #1
    AKQTS is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    56

    Sum fields in a form


    I am building a form where a user can enter an order # and multiple parts will populate on that order. Within that form there are user entry fields where they can enter the amount of components rejected for 6-7 reasons (columns) for each part number, i.e. damaged, dosen't match print, etc. This is all done in the details section where depending on the order 5 -50 parts may populate.

    I want to total the amount rejected for each part (total the 6 or 7 reject reason fields).

    Setting up an unbound text box and programming a basic sum expression, it works, but in the rejects total column it lists the total rejected for the entire order in the row for each part and not the total for that specific part. How do I get it to only sum the total rejects for each part? thanks

  2. #2
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    You are going to have to explain a little more, like how does your form get its information. Is it a continuous form? Post a jpeg if you can.

  3. #3
    AKQTS is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    56

    What I am trying to do is sum the central fields with the light borders (i.e. "Sealer set-up" to "Others") into the "Total Rejected" field for each row.

    If correct, the second row would say 3 in the Total Rejects box and the third row would say 1 in the Total Rejects box...

    When I create an unbound text box for total rejects it sums all the part numbers in the list. In this case it would say 23 in all the rows in the Total Rejected column.

    All you see above is done in the details section and all the information is queried from the same table into the form.

    Any help would be great or if anymore info is needed, let me know. Thanks again.

  4. #4
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    =Nz([txt1])+Nz([txt2])+Nz([txt3]).... use the name of the textboxes instead of txt1 ...
    I am guessing this is a continuous form but this should work.

  5. #5
    AKQTS is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    56
    Awesome, worked great, Thanks cowboy

  6. #6
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    no problem, mark the thread as solved plz

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

Similar Threads

  1. Linking form fields
    By rev_ollie in forum Forms
    Replies: 15
    Last Post: 07-09-2010, 06:10 AM
  2. Autofill form fields
    By roboticsguy1988 in forum Forms
    Replies: 1
    Last Post: 08-10-2009, 08:56 AM
  3. Displaying form fields
    By sakthivels in forum Forms
    Replies: 5
    Last Post: 05-25-2009, 07:52 AM
  4. form not displaying fields
    By ashiers in forum Forms
    Replies: 0
    Last Post: 09-19-2008, 07:02 AM
  5. Feeding fields from one form to another
    By dahand in forum Forms
    Replies: 0
    Last Post: 02-15-2008, 01:48 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