• HELP ..Calculation Error ?? (Access 2000 SR1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » HELP ..Calculation Error ?? (Access 2000 SR1)

    Author
    Topic
    #400265

    PLEASE HELP ……………….I have a simple table with two fields both defined as Field Size = Double and Decimal Places = Auto for input of numeric values.

    When using an expression in a query to calculate the variance between these two fields I receive strange results on some, but not all records. A snapshot of the results are listed below. The expression is [FieldA]-[FieldB] …. has anyone run accross this before?

    Field A – Field B = Result
    123345.87 – 123345.87 = 1.45519152283669E-11
    1677.72 – 1677.72 = 2.27373675443232E-13
    737.99 – 737.99 = 0

    Viewing 1 reply thread
    Author
    Replies
    • #779505

      Are the values in fieldA and fieldB result of calculation or are they keyed in ?
      Try to set the format to General number to see what’s really in the field.
      You may have to round your values.
      ROUND(number,num_digits)

    • #779506

      Are the values in fieldA and fieldB result of calculation or are they keyed in ?
      Try to set the format to General number to see what’s really in the field.
      You may have to round your values.
      ROUND(number,num_digits)

    Viewing 1 reply thread
    Reply To: HELP ..Calculation Error ?? (Access 2000 SR1)

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

    Your information: