Results 1 to 4 of 4
  1. #1
    bobbynogs is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3

    Adding two calculated fields into a third

    I am having difficulty in getting a total to be calculated in a text box in my report footer.

    I have two calculated fields that are located in the report footer and work they are:

    txtRITotal =Sum([Hours Worked]*6.31*24)

    txtNXTotal =Sum([Fee])

    They are both formatted to display as currency and they work perfectly as far as I can tell,
    now the problem that I have is that I want to be able to take the results of those two fields
    and add them together to make a Total field but,



    =[txtRITotal]+[txtNXTotal]

    only displays #Name?

    I have tried numerous other different formulas and I always get #Name? as a result.

    Can anyone assist please?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    try:
    txtbox = (Sum([Hours Worked]*6.31*24)) + (Sum([Fee]))

  3. #3
    bobbynogs is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3
    Thanks you very much, was sure I tried that one, must have managed to mess it up.
    Feel so stupid :3.

  4. #4
    bobbynogs is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3
    I wonder if you could help me once more.

    I have a query that contains a calculated value, Hours Worked: [Time Out]-[Time In]-[Break Length]
    which works as it's supposed to but as in my OP this then gets used for the following;
    =Sum([Hours Worked]*6.31*24)
    which also works but I have just realised if the break length contains half an hour as it quite possibly do then wouldn't the currency field round up instead of down?

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

Similar Threads

  1. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  2. Replies: 1
    Last Post: 08-06-2013, 07:52 PM
  3. Adding calculated fields
    By Hulkdog in forum Access
    Replies: 12
    Last Post: 02-06-2012, 03:46 PM
  4. Calculated fields
    By graciemora in forum Forms
    Replies: 1
    Last Post: 02-04-2011, 06:07 AM
  5. Replies: 2
    Last Post: 12-03-2010, 09:33 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