+ Reply to Thread
Results 1 to 2 of 2

Storing decimal value in Access table

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Storing decimal value in Access table

    Hi Guys

    I am developing an application with Excel as a frontend and Access backend. When in the userform the values get entered and The button is clicked then those values are stored in Access table. If I enter in a textbox a number with decimal point in it then in the table the related field doesn't store the decimal value and just round off the number. The field has "number "data type with 2 decimal points.

    E.g if I enter 19.8 in a textbox then in the table the related field will store 20.

    Can anyone please tell me why its happening ? I have set number data type of that field with 2 decimal points.

    Thanks in advance for any help!!!
    Last edited by aman1234; 09-23-2010 at 11:01 AM.

  2. #2
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Storing decimal value in Access table

    Thanks for looking. I have solved my problem . Just had to use format property as follows:

    textbox1.value=format(textbox1.value,"0.00")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1