Hi all,
Hopefully someone can help. I've been at this all week and seem to be making little steps but have been against a brick wall since yesterday morning now.
I'm building a database for my price list. It is based on simply the products I have in my shop. I sell to the public and to (a few ) trade customers. My peice is based on buycost + 10% for public and buycost + 5% for trade customers.
I have a table with product info in it, another table with percentage values (5% in one record and 10% in the next record) and I have created a collective table for all info from both tables. (I'm not sure if that's the best way).
I have created an input form that I put the product data in. I want to be able to put the buy cost into the input form then it automatically calculates the trade price and public price for me. I have managed to do that using AfterUpdate on a form. The problem I have is that when I create a new record, it doesn't keep the percentage value, I have to put that in again which creates a new record in the percent table. The obvious danger would be if percentages change to say 4% and 9%, I would need to change all instances of 10% to 9% etc.
If I built in Excel obviously I could create a worksheet with percentages then put say $A$1 and that would work. Is there any way I can get a new product record to look in the percent table and use the value in the first record for trade percent then second record for public percent. ( I have tried creating a field for trade percent and another field for public price. I also tried creating a field called percent and record 1 was the trade percent, record 2 was the public price - not sure which is the best way to move forward)
I want to create a form which I can print which will show all trade prices then another form showing public prices.
Hopefully someone can shed some light on this for me.
TIA
Jack
Hopefully someone can help. I've been at this all week and seem to be making little steps but have been against a brick wall since yesterday morning now.
I'm building a database for my price list. It is based on simply the products I have in my shop. I sell to the public and to (a few ) trade customers. My peice is based on buycost + 10% for public and buycost + 5% for trade customers.
I have a table with product info in it, another table with percentage values (5% in one record and 10% in the next record) and I have created a collective table for all info from both tables. (I'm not sure if that's the best way).
I have created an input form that I put the product data in. I want to be able to put the buy cost into the input form then it automatically calculates the trade price and public price for me. I have managed to do that using AfterUpdate on a form. The problem I have is that when I create a new record, it doesn't keep the percentage value, I have to put that in again which creates a new record in the percent table. The obvious danger would be if percentages change to say 4% and 9%, I would need to change all instances of 10% to 9% etc.
If I built in Excel obviously I could create a worksheet with percentages then put say $A$1 and that would work. Is there any way I can get a new product record to look in the percent table and use the value in the first record for trade percent then second record for public percent. ( I have tried creating a field for trade percent and another field for public price. I also tried creating a field called percent and record 1 was the trade percent, record 2 was the public price - not sure which is the best way to move forward)
I want to create a form which I can print which will show all trade prices then another form showing public prices.
Hopefully someone can shed some light on this for me.
TIA
Jack