JLS1700
12-08-2004, 04:11 AM
Hi, I need help on a little function.
I use an access database for a large list of products.
I have 2x price tables, one for ex vat, and one for inc.
The problem is that when I update it in the backoffice program, I have to enter the ex vat and also the inc vat. Very time consuming, and a big annoyance.
The program i use to update is just 2 dynamic textboxes with an update button on a repeated region.
<input name="iprice" type="text" id="iprice" size="8" value="<%=formatnumber(rsprods.Fields.Item("SPRICE").Value,2,-1)%>">
I'm pretty sure there is a way of setting this up in the database, but the expression builder is very confusing, and I've tried for ages to come up with something, if anyone knows access I need the [RPRICE] table to get the price from the [SPRICE] table and divide it by 1.175. (UK VAT Rate)
And if I use that in the database, i can delete the RPRICE update feature, and when I update the SPrice table it should automatically work out the vat, and display it dynamically on pages.
I figure this is what will happen, but theres always unexpected results.
Appreciate any help at all.
Thanks
Jamie
I use an access database for a large list of products.
I have 2x price tables, one for ex vat, and one for inc.
The problem is that when I update it in the backoffice program, I have to enter the ex vat and also the inc vat. Very time consuming, and a big annoyance.
The program i use to update is just 2 dynamic textboxes with an update button on a repeated region.
<input name="iprice" type="text" id="iprice" size="8" value="<%=formatnumber(rsprods.Fields.Item("SPRICE").Value,2,-1)%>">
I'm pretty sure there is a way of setting this up in the database, but the expression builder is very confusing, and I've tried for ages to come up with something, if anyone knows access I need the [RPRICE] table to get the price from the [SPRICE] table and divide it by 1.175. (UK VAT Rate)
And if I use that in the database, i can delete the RPRICE update feature, and when I update the SPrice table it should automatically work out the vat, and display it dynamically on pages.
I figure this is what will happen, but theres always unexpected results.
Appreciate any help at all.
Thanks
Jamie