stapleford
New member
- Local time
- Today, 14:35
- Joined
- Jun 13, 2012
- Messages
- 7
Hi All,
I have created a query to price items for me for specific customers. So far i am able to choose a specific customer, products and the base price associated with those products but now i am stuck with the discount rate that is specific to each customer.
I have a combo box on my form to choose what customer you want, but in my master table i have to list the customers across the top in each of their own columns. Each customers has a different discount rate for each product.
So my problem is I do not know how to make a query that returns the discount rate because the field has to be a variable depending on what customer you choose. Basically i would like a field in my query that is linked to my combobox.
Item # Description Base Price Cust 1 Cust 2 Cust 3
item1 test1 $ 100.00 0.98 0.97 0.97
item2 test2 $ 150.00 0.99 0.96 0.93
Is there anyway to build this into my query in the design view or is this more of a job for code?
Thanks in adavance,
Andrew
I have created a query to price items for me for specific customers. So far i am able to choose a specific customer, products and the base price associated with those products but now i am stuck with the discount rate that is specific to each customer.
I have a combo box on my form to choose what customer you want, but in my master table i have to list the customers across the top in each of their own columns. Each customers has a different discount rate for each product.
So my problem is I do not know how to make a query that returns the discount rate because the field has to be a variable depending on what customer you choose. Basically i would like a field in my query that is linked to my combobox.
Item # Description Base Price Cust 1 Cust 2 Cust 3
item1 test1 $ 100.00 0.98 0.97 0.97
item2 test2 $ 150.00 0.99 0.96 0.93
Is there anyway to build this into my query in the design view or is this more of a job for code?
Thanks in adavance,
Andrew