• Table Equation

    • This topic has 2 replies, 3 voices, and was last updated 24 years ago.
    Author
    Topic
    #354337

    OK…so I am a dummy….my table has 1)AmtDue, 2)AmtPaid and 3)Balance. I know in a form you can make the calculation–AmtDue-AmtPaid….but can this be done in the table itself?

    I tried putting AmtDue-AmtPaid in the “default” of the Balance field, but it bombed.

    Thanks,

    Viewing 0 reply threads
    Author
    Replies
    • #520475

      Roberta:

      I don’t know of a way to build an equation like that into the construct of a table, nor am I sure you’d really want to. You can use an update query to set the balance field = to [AmtDue]-[AmtPaid], but for my money, I’d calculate that bit of information on the fly in your queries, forms and reports. 2cents

      • #520480

        You’re right Roberta, it’s not the way to do it frown But I must ask, how are you updating the AmtPaid field in the table ? I assume if there is an outstanding balance, you would expect more than one payment, correct ? If you already have a means of increasing the amount paid (through a form perhaps?), you should use the same method to adjust the Balance field. But I wouldn’t recommend you continue down this path doh

    Viewing 0 reply threads
    Reply To: Table Equation

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

    Your information: