Hi everyone!
First post here, just looking for some help with a project im working on.
I have got a form with a sub form in it which works together to produce and invoice. A discount has to be applied to only one product (if the "type" field is carpet, then a discount has to be applied. (the discount comes from a radiobutton field on the main form.
here is my code...
the main form is called jobs
the sub form is called job_lines
for some reason this code just doesn't work.
Any help?
thanks,
James.
First post here, just looking for some help with a project im working on.
I have got a form with a sub form in it which works together to produce and invoice. A discount has to be applied to only one product (if the "type" field is carpet, then a discount has to be applied. (the discount comes from a radiobutton field on the main form.
here is my code...
Code:
=Sum(IIf([Type]=[carpet],[addtotal]-[addtotal]/100*[Forms]![jobs]![Frame33],[addtotal]))
the main form is called jobs
the sub form is called job_lines
for some reason this code just doesn't work.
Any help?
thanks,
James.