Results 1 to 5 of 5
  1. #1
    cici is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    3

    Calculated control help

    I'm trying to add a calculated control to a custom form to add together two other fields in the same form. I used =Sum(Field1+Field2) in the Control Source on the Property Sheet. It works in adding together the two fields. However, rather than just adding the two fields on the current record, it totals those two fields on all of the records in the form. I have 46 records in the form and I want it to just add the current record and then change numbers if I click over to another record. How would I go about doing this? Any help is greatly appreciated

  2. #2
    Join Date
    May 2010
    Posts
    339
    Hi cici,

    Are you using a form/subform? or a form?

  3. #3
    cici is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    3
    It's a form. All the fields and formulas are in the one form, no subforms or linking to other forms or anything.

  4. #4
    Join Date
    May 2010
    Posts
    339

    Calculated control help

    Hi cicic,

    If field1 and field2 in your table are set to number "Long Integer"
    Place the below code in a text box's control source.
    Post back if you need more help.

    Code:
    =[field1]+[field2]

    Richard

  5. #5
    cici is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    3
    That worked perfectly!! Thank you so much!!

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

Similar Threads

  1. Help with calculated controls
    By DannyV in forum Forms
    Replies: 2
    Last Post: 04-20-2010, 12:07 PM
  2. Sum of calculated fields
    By nkuebelbeck in forum Forms
    Replies: 9
    Last Post: 03-12-2010, 01:32 PM
  3. Control source and calculated values
    By meistersteff in forum Forms
    Replies: 0
    Last Post: 11-23-2007, 07:04 PM
  4. calculated sum not working!
    By Linda Gamble in forum Access
    Replies: 1
    Last Post: 10-12-2007, 06:38 AM
  5. Sending control to specific control
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 08:19 AM

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