Re: how 2 update a tbl field based on result of a math calculation
From: Daniel Allan (DanielAllan_at_discussions.microsoft.com)
Date: 09/07/04
- Next message: Daniel Allan: "How to update Calculated Query into another table?"
- Previous message: Terry: "RE: 2 Combo Boxes the second requiring selection based on the first"
- In reply to: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation in"
- Next in thread: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation"
- Reply: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Sep 2004 21:01:09 -0700
Hi Allen,
Thanks for you suggestion, I created the query as suggested, i am able to
get correct data from the query output into a field called "TotalPrice" in
the query result window, but how do I extract data from the query result
field into my "Sales Register" table? Thanks
Daniel
"Allen Browne" wrote:
> Hi Daniel
>
> Unless there is a reason why the TotalPrice should sometimes be different
> from the calcuation, you must not store it in your table. Instead, use a
> calculated field in query. Then you never have to worry about whether you
> have updated the field correctly or not.
>
> The calculated field is as simple as typing this into the Field row in your
> query:
> TotalPrice: [SalesUnits] * [SalePricePerUnit]
>
> Even better, handle the null and convert the result to currency:
> TotalPrice: CCur(Nz([SalesUnits] * [SalePricePerUnit],0))
>
> For more information, including how to store the calculated result in your
> table if you really need to, see:
> Calculated fields
> at:
> http://members.iinet.net.au/~allenbrowne/casu-14.html
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
- Next message: Daniel Allan: "How to update Calculated Query into another table?"
- Previous message: Terry: "RE: 2 Combo Boxes the second requiring selection based on the first"
- In reply to: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation in"
- Next in thread: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation"
- Reply: Allen Browne: "Re: how 2 update a tbl field based on result of a math calculation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|