Results 1 to 3 of 3
  1. #1
    cuongmyh is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2015
    Posts
    3

    Sum textbox in continuos form

    Hi!


    How to sum a textbox in a Continuos form?
    Sum locate in form footer.
    Thank you

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    If the textbox "Text0" and "Text2" are empty or Null, then the #error will show in textbox "Text4".

    If on the same form,

    =CDbl([Text0])+CDbl([Text2])

    If not on the same form,
    =CDbl(Forms![Form1]![Text0]) + CDbl(Forms![Form1]![Text2])

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by cuongmyh View Post

    ...How to sum a textbox in a Continuos form...
    If you're speaking of summing all of a single, given Textbox, such as the total of unit prices on an invoice Form

    =Sum(Nz([NumericalFieldName],0))

    Notice it says NumericalFieldName! It must be the name of the Field in the underlying Table, not the name of the Textbox...unless the names are the same.

    If the Field in question is a Calculated Field, you have to sum the Fields involved in the calculation

    =Sum(Nz([NumericalFieldName1],0) + Nz([NumericalFieldName2],0))

    not the Calculated Field.

    Linq ;0)>

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2014, 05:18 PM
  2. Replies: 10
    Last Post: 10-14-2013, 10:18 AM
  3. Replies: 1
    Last Post: 06-21-2013, 10:41 AM
  4. Replies: 2
    Last Post: 04-20-2013, 03:37 AM
  5. Replies: 8
    Last Post: 04-12-2013, 08:59 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