• decimal places (MS Access 2000)

    Author
    Topic
    #416662

    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

    Viewing 0 reply threads
    Author
    Replies
    • #932655

      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.

    Viewing 0 reply threads
    Reply To: decimal places (MS Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: