Hello all,
I am creating a database with prices per customer per product.
Let's say 100 customers, 1000 products, max 10 prices per product.
The database is working as I want. But now I do need to find a way to updates prices. This updating needs to be done partly manually, partly automatically.
Example:
(c=customer, p=product)
c1 p1 50
c1 p2 500
c1 p3 1000
c2 p1 55
c2 p2 500
c2 p3 1050
c3 p1 55
c3 p2 500
c3 p3 1050
c4 p1 50
c4 p2 550
c4 p3 1100
So I have the following values
p1 50 55
p2 500 550
p3 1000 1050 1100
When someone manually updates the values of "50 and 55" to "55 and 60" for p1, it must be automatically updated for all customers.
I gives me a headache for weeks.... I cannot find any way to create something that is workable.
First I thought to create a list (crosstab-query) with all products with columns for different prices. But that is not working: it creates a column for each customer, in stead of each different value. And besides that problem it isn't updatable. So that doesn't work.
Second try was creating a form, with 2 subforms.
In het mainform I could choose 2 customers (the reference and the customer I wanted to change). In the first subform I would get all prices for the to be changed customer, with an extra column for new prices.
I can type in new prices for that customer. So this works.
So exemple: I change the prices of 'C1'. So 'C1' has for each product an 'price' and a 'new price'.
After that I choose 'C2', with as reference 'C1'.
In the first subform I again get the price of 'C2', with an empty 'new prices'-column. In the second subform I get the prices of 'C1', with old and new prices.
And after that I want something to be done, what I cannot program / I don't know any ways to program this:
I wanted now to create a button that copies the values of the field 'new prices' of the second subform to the field 'new prices' of the first subform.
If it would have worked now 'C1' and 'C2' would have the same values for 'new prices'.
Now I manually only need to change the values that are different for 'old prices'.
But I do think I am creating something what isn't necessary. Maybe someone can give me some clues how to start.
Do I need to do it with a form, with queries, or do I need to do it partly in other programs (excel by example)?
Thanks for your help, and please ask if I wasnt clearly enough.
I am creating a database with prices per customer per product.
Let's say 100 customers, 1000 products, max 10 prices per product.
The database is working as I want. But now I do need to find a way to updates prices. This updating needs to be done partly manually, partly automatically.
Example:
(c=customer, p=product)
c1 p1 50
c1 p2 500
c1 p3 1000
c2 p1 55
c2 p2 500
c2 p3 1050
c3 p1 55
c3 p2 500
c3 p3 1050
c4 p1 50
c4 p2 550
c4 p3 1100
So I have the following values
p1 50 55
p2 500 550
p3 1000 1050 1100
When someone manually updates the values of "50 and 55" to "55 and 60" for p1, it must be automatically updated for all customers.
I gives me a headache for weeks.... I cannot find any way to create something that is workable.
First I thought to create a list (crosstab-query) with all products with columns for different prices. But that is not working: it creates a column for each customer, in stead of each different value. And besides that problem it isn't updatable. So that doesn't work.
Second try was creating a form, with 2 subforms.
In het mainform I could choose 2 customers (the reference and the customer I wanted to change). In the first subform I would get all prices for the to be changed customer, with an extra column for new prices.
I can type in new prices for that customer. So this works.
So exemple: I change the prices of 'C1'. So 'C1' has for each product an 'price' and a 'new price'.
After that I choose 'C2', with as reference 'C1'.
In the first subform I again get the price of 'C2', with an empty 'new prices'-column. In the second subform I get the prices of 'C1', with old and new prices.
And after that I want something to be done, what I cannot program / I don't know any ways to program this:
I wanted now to create a button that copies the values of the field 'new prices' of the second subform to the field 'new prices' of the first subform.
If it would have worked now 'C1' and 'C2' would have the same values for 'new prices'.
Now I manually only need to change the values that are different for 'old prices'.
But I do think I am creating something what isn't necessary. Maybe someone can give me some clues how to start.
Do I need to do it with a form, with queries, or do I need to do it partly in other programs (excel by example)?
Thanks for your help, and please ask if I wasnt clearly enough.