Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    decimal places (MS Access 2000)

    I have a form upon which there is a button to open another form where number calculations are made in several fields, all of the fields are formatted to 2 decimal places, once these calculations are made I click a button to close the form and reurn to the first form, a small bit of coding updates the relevant fields with the results on form one.

    My problem is that the numbers are always rounded up to the next whole number, i.e. 5.5 will show as 6, I have rechecked both forms and the tables associated with them and everything is saying 2 decimal places.

    Can anybody explain this behaviour and how I can cure it.

    Thanks


    Steve
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: decimal places (MS Access 2000)

    If you want to use numbers with decimals, the field length must be Single or Double. If it is (Long) Integer, no decimals are stored even if the Decimal Places property is set to 2.

Posting Permissions

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