Results 1 to 3 of 3
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085

    Calculate a sum of numeric textboxes on a form isn't working right

    I have a number of text boxes on a form. 6 of them are for data input in kind of a grid format. they are formatted as General number. Then there are totals by row and column. the problem is that the total boxes instead of adding the input as a sum they're appending them so if I have 150, 145 and 175 on the row instead of 470 which is what I want. I'm getting 150145175
    The total textbox has a control of =textbox1+textbox2+textbox3. All 4 textboxes are formatted as General Number. I also tried =Val(textbox1) + Val(textbox2) + Val(textbox3) but that just gives me a type! Error so for the moment I'm stumped. any idea is appreciated.

  2. #2
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    or maybe
    = VAL(me.textbox1) + VAL(Me.textbox2) +...

  3. #3
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Sorry I found the problem. one of the textboxes was formatted for short time instead of numeric. Must've twitched or something when I hit the mouse and didn't catch it.

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

Similar Threads

  1. Replies: 4
    Last Post: 07-07-2023, 05:14 PM
  2. Replies: 7
    Last Post: 02-04-2021, 04:19 AM
  3. Replies: 6
    Last Post: 01-22-2021, 01:03 AM
  4. Any thoughts why "IF" isn't working right?
    By dniezby in forum Programming
    Replies: 3
    Last Post: 03-20-2017, 06:35 PM
  5. Just numeric input for all textboxes in the form
    By amd711 in forum Programming
    Replies: 7
    Last Post: 11-27-2012, 08:08 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