• Calculation Field in a Form (Access 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Calculation Field in a Form (Access 2003)

    Author
    Topic
    #438499

    I have an order details table that I need to store the quantity * the price. I can get it to show on the form but it is not being stored in the table.
    Thank you in advance

    Viewing 0 reply threads
    Author
    Replies
    • #1045727

      Hi Robin

      The best thing to do in this case is to create a query from the table which has the field

      OrderAmount: [quantity]*[price]

      and run the form from that query

      • #1045734

        How do I get the OrderAmount stored in my Order Details table.
        Thanks

        • #1045741

          You don’t need to. The query stores the data and you can report on that.

        • #1045773

          Jerry is correct: unless there is a very specific reason for it, you shouldn’t store calculated information in a table. Tables should be used to store the basic data, and queries can be used to perform calculations based on those data. Storing calculated information takes up unnecessary space, and it might easily get out of date if you don’t take care to update it whenever the basic data are modified.

        • #1045836

          As others have pointed out, you don’t need to nor should you store calculated data in a table. You really should acquaint yourself with the process of “database normalization”. This encompasses some rules for the design of databases, with the purpose of ensuring the integrity of the data while maximizing the ability to use the data. Most Access books have at least a chapter devoted to this topic.

          • #1045851

            Thank you all for your help and suggestions. This is a wonderful form and everyone is so helpful.

    Viewing 0 reply threads
    Reply To: Calculation Field in a Form (Access 2003)

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

    Your information: