Hi
Please can someone help me with an IIF problem.
I have 2 fields on a form:
VATRegistered (Yes/No)
TotalCost (Currency)
If the VATRegistered Field is Yes then I want TotalCost *0.175
if not - then just total cost.
Here is the IIF Statement:
=IIf(-1([Forms]![frmInvoices]![VATRegistered]),[TotalCost]*0.175,[TotalCost])
The bit marked in red is the bit i am struggling with. I have tried swapping it with -1, Yes and True but I just get a syntax error. I have also tried adding = -1, True, Yes after the VATRegistered bit as below:
=IIf([Forms]![frmInvoices]![VATRegistered]=-1),[TotalCost]*0.175,[TotalCost])
Both don't work and I have no idea why. I am entering this IIF statement in the Control Source property of the field in the form.
Please can someone help?
Many thanks in Advance.
Daz
Please can someone help me with an IIF problem.
I have 2 fields on a form:
VATRegistered (Yes/No)
TotalCost (Currency)
If the VATRegistered Field is Yes then I want TotalCost *0.175
if not - then just total cost.
Here is the IIF Statement:
=IIf(-1([Forms]![frmInvoices]![VATRegistered]),[TotalCost]*0.175,[TotalCost])
The bit marked in red is the bit i am struggling with. I have tried swapping it with -1, Yes and True but I just get a syntax error. I have also tried adding = -1, True, Yes after the VATRegistered bit as below:
=IIf([Forms]![frmInvoices]![VATRegistered]=-1),[TotalCost]*0.175,[TotalCost])
Both don't work and I have no idea why. I am entering this IIF statement in the Control Source property of the field in the form.
Please can someone help?
Many thanks in Advance.
Daz