Results 1 to 4 of 4
  1. #1
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    Sum on a tab from a table Sum Problem

    I have a table that has fields for number input



    On my form I have in a TAB form 3 fields to input a figure, in the table these are set up as a Text NOT a Number. If i set it as a Number it keeps rounding up? even after i enforce 2 decimal places it still keeps rounding up.

    Field 1 - 42988.62
    Field 2 - 0.00
    Field 3 - -14330.84

    I then created a unbound txtbox so I can add these up

    =[ResBF]+[ResRefReC]+[ResSurDef]

    what i get in return is this :- 42988.620.00-14330.84

    I also tried =Sum([ResBF]+[ResRefReC]+[ResSurDef])

    and that just comes up with #Error

    I even tried in the table directly to have a calculated field and still having the same problems

    I have no idea whats going on here, any ideas?

  2. #2
    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 keiath View Post

    ...If i set it as a Number it keeps rounding up...
    What kind of FieldSize did you use when defining the Fields? The default is Integer, and Access will always change numbers containing decimals into whole numbers. If this is the case, change the FieldSize to either Single or Double, depending on your needs. If, in Table Design, you select a Number Field, place the cursor in the FieldSize box and hit <F1> help will pop up explaining the different types of Numbers and their ranges.

    Linq ;0)>

  3. #3
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Thanks that seem to have solved the problem

  4. #4
    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
    Glad we could help!

    Linq ;0)>

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

Similar Threads

  1. Table problem
    By George in forum Access
    Replies: 9
    Last Post: 05-27-2013, 06:09 AM
  2. Table problem
    By imlost2 in forum Access
    Replies: 1
    Last Post: 09-05-2011, 03:36 PM
  3. Table / Form problem
    By mayler in forum Access
    Replies: 1
    Last Post: 05-15-2009, 07:09 PM
  4. Table design problem
    By wasim_sono in forum Database Design
    Replies: 0
    Last Post: 04-08-2009, 06:21 AM
  5. Pivot Table Problem
    By larpup in forum Forms
    Replies: 0
    Last Post: 01-06-2006, 08:11 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