• Formula Formatting (97 SR2)

    Author
    Topic
    #359104

    I’m sure it’s something so simple…

    I have a formula on my report that subtracts two dates, The field looks like this in design mode:

    =trim(” Average processing time was ” & format([datecomplete]-[datestarted],“nn.n”) & ” Days.”

    I’m having issues with the portion in bold. I want it to return only one decimal. In some cases, it’s extending the decimal by hundered-thousandths, too much detail for reporting purposes.. I’m sure it’s simple.. any ideas?

    Viewing 1 reply thread
    Author
    Replies
    • #537393

      have you tried datediff

      • #537401

        I need the number of days.. this formula is doing what I want, it’s just returning too many decimal points.

        bingo “##.#” that does it!

        Thanks for reading! laugh

    • #537400

      That’s not a valid format string. I think you mean #0.0 instead of nn.n.

      • #537403

        Thanks Douglas,

        Dove into my monsterously huge Access Manual for that Can’t believe it.. laugh

        I knew it was something ‘easy’…

        Thanks again!

    Viewing 1 reply thread
    Reply To: Formula Formatting (97 SR2)

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

    Your information: