Results 1 to 5 of 5

Thread: Easy and Stupid Question But.......

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78
    Hi,

    I am having a problem with my database. It seems to be rounding up numbers. I have the field in the database as a number with 2 decimal places. If I enter in 7.6 it rounds it up to 8. How can I fix this?

    Thanks in advance.

    Mike

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Question

    What database are you using?

  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141

    Smile

    Hi,

    You'll be happy to know that it's simple to fix. When you define your field as a number, the default type is Long Integer (look at the Field Size). An integer doesn't have any decimal places so it rounds the number you enter. To fix this, change the Number type (field size) to either Single or Double, depending on your needs.

    Hope this helps.

    JC

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78

    Thumbs up

    It's an Access Database.

    Thanks Jcouture100 as this has solved the problem.

    Mike

  5. #5
    Junior Member
    Join Date
    Feb 2000
    Location
    Edmonton,AB,Canada
    Posts
    28
    and also set the format to FIXED

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width