C
Claudio Rodrigues
Sorry for the stupid question.
I am trying to do something simple using Access 2003.
I have two tables that I use for a simple ordering system
that I am trying to develop.
One table, TblOrders has these fields:
ID_Order (Primary Key, unique, auto-increment)
Date_Order
ID_Customer
ID_Shipper
Shipped
Date_Shipping
TrackingNumber
Total
Then I have another table TblOrderEntry where I store the
products and quantities ordered. Fields are:
ID_OrderEntry
ID_Order
ID_Product
Qty
On the TblProducts I have the ID_Product, Desc_Product
(description) and MSRP_Product (cost).
So what I want is on my Order form (with a subform for
the TblOrderEntry) is the TOTAL field to be calculated
automatically.
This means it needs to get all the records from
TblOrderEntry from the order being shown (that I already
see on the screen, works great) and retrieves from all
products on that order their cost (from the TblProducts)
and multiply by the QTY and SUM all.
How can I do that?? I think something like a SELECT
blabla FROM blabla AS TOTAL would do it?
I am not sure if the access gurus will understand what I
am trying to achieve but if you do let me know how to do
this.
Thanks!
I am trying to do something simple using Access 2003.
I have two tables that I use for a simple ordering system
that I am trying to develop.
One table, TblOrders has these fields:
ID_Order (Primary Key, unique, auto-increment)
Date_Order
ID_Customer
ID_Shipper
Shipped
Date_Shipping
TrackingNumber
Total
Then I have another table TblOrderEntry where I store the
products and quantities ordered. Fields are:
ID_OrderEntry
ID_Order
ID_Product
Qty
On the TblProducts I have the ID_Product, Desc_Product
(description) and MSRP_Product (cost).
So what I want is on my Order form (with a subform for
the TblOrderEntry) is the TOTAL field to be calculated
automatically.
This means it needs to get all the records from
TblOrderEntry from the order being shown (that I already
see on the screen, works great) and retrieves from all
products on that order their cost (from the TblProducts)
and multiply by the QTY and SUM all.
How can I do that?? I think something like a SELECT
blabla FROM blabla AS TOTAL would do it?
I am not sure if the access gurus will understand what I
am trying to achieve but if you do let me know how to do
this.
Thanks!