Hi to all!
I have a question that I can't find a logical answer to, especially after 3 days of thinking, I think I can't think anymore
(
So here's what's going on:
I have a Clients Table (*CLIENT_ID, NAME, SURNAME)
I have a Products Table (*PRODUCT_ID, DESCRIPTION)
I have a Charges Table (*CHARGE_ID, *CLIENT_ID, PRODUCT_ID, DATE, AMOUNT)
(All those with a *star are marked as Primary Keys)
The problem is that I can't figure out how to create a form (maybe with a subform in it?) that will store to the Charges Table (or ANY other table, please suggest by all means) a purchase done by a client, on a specific date, that includes multiple products, and how much each product was charged for. I can't figure out how to have the same CHARGE_ID for several purchases of the same client the same date.
I tried creating a form based on the fields of the Charges Table, but this creates (well... obviously) a separate record for each purchase of the same client for the same day. That's not what I want, because I have to get the sum of all the purchases' costs, so as to tell the client how much he has to pay and I can't do that.
On the other hand, I tried creating a form based on the fields of the Client's Table, and insert a subform based on the Charges Table. Still nothing.
Can you please tell me the way you would approach the problem? What have I planned wrong?
Thanks in advance
Alexander
I have a question that I can't find a logical answer to, especially after 3 days of thinking, I think I can't think anymore

So here's what's going on:
I have a Clients Table (*CLIENT_ID, NAME, SURNAME)
I have a Products Table (*PRODUCT_ID, DESCRIPTION)
I have a Charges Table (*CHARGE_ID, *CLIENT_ID, PRODUCT_ID, DATE, AMOUNT)
(All those with a *star are marked as Primary Keys)
The problem is that I can't figure out how to create a form (maybe with a subform in it?) that will store to the Charges Table (or ANY other table, please suggest by all means) a purchase done by a client, on a specific date, that includes multiple products, and how much each product was charged for. I can't figure out how to have the same CHARGE_ID for several purchases of the same client the same date.
I tried creating a form based on the fields of the Charges Table, but this creates (well... obviously) a separate record for each purchase of the same client for the same day. That's not what I want, because I have to get the sum of all the purchases' costs, so as to tell the client how much he has to pay and I can't do that.
On the other hand, I tried creating a form based on the fields of the Client's Table, and insert a subform based on the Charges Table. Still nothing.
Can you please tell me the way you would approach the problem? What have I planned wrong?
Thanks in advance
Alexander