WillShakespeare
MIS
All,
I have doene a quick search, and I know a few people have had the same trouble I am having, but a solution is still forthcoming. I wonder if you could help?
I have a DB that stores Products and Jobs (and customers), and on my Job form is a subform for Products. It all works well except that the price on the Job form is actually worked out by multiplying the price field for the product by the Area (or Perimeter, using IIF) field in Jobs.
The price for each record is perfect in the box assigned. However, when I try to SUM the totals from this text box on each record, I get an error.
As far as I can tell, this is because my textbox has a calculation in it. This is fine, but I need to figure this out, and quick!
I tried adding a hidden text box that is simply set as "=[txtPrice]" from the form, and then the total box is "=Sum([txtTempPrice])" but again withthe error.
I have tried adding the IIF nto te sum, and that also doesn't seem to work.
The probelm is the price on the form i not from a DB field, else I could just sum the fields. Plus, I cannot see an easy way to add a new colum to any of the tables to hold the price for a specific job, because its for the products, which each is different for each job!
Any help would be appeciated.
If I could do this with a query or VBA code, fine, but I am fairly new to Access so not sure where to put any code. I have some requery code in one ofmy text boxes (not to d with summing), so have written some code, but that was in a specific AfterUpdate() function.
Please help! I am at a loose end!!
Will
I have doene a quick search, and I know a few people have had the same trouble I am having, but a solution is still forthcoming. I wonder if you could help?
I have a DB that stores Products and Jobs (and customers), and on my Job form is a subform for Products. It all works well except that the price on the Job form is actually worked out by multiplying the price field for the product by the Area (or Perimeter, using IIF) field in Jobs.
The price for each record is perfect in the box assigned. However, when I try to SUM the totals from this text box on each record, I get an error.
As far as I can tell, this is because my textbox has a calculation in it. This is fine, but I need to figure this out, and quick!
I tried adding a hidden text box that is simply set as "=[txtPrice]" from the form, and then the total box is "=Sum([txtTempPrice])" but again withthe error.
I have tried adding the IIF nto te sum, and that also doesn't seem to work.
The probelm is the price on the form i not from a DB field, else I could just sum the fields. Plus, I cannot see an easy way to add a new colum to any of the tables to hold the price for a specific job, because its for the products, which each is different for each job!
Any help would be appeciated.
If I could do this with a query or VBA code, fine, but I am fairly new to Access so not sure where to put any code. I have some requery code in one ofmy text boxes (not to d with summing), so have written some code, but that was in a specific AfterUpdate() function.
Please help! I am at a loose end!!
Will