Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIF Problem on Report 1

Status
Not open for further replies.

66tigger40

Technical User
May 26, 2004
108
GB
I have the following IF Statement on a subreport but it's coming back with #error any ideas?

Code:
=IIf(Reports!AFP!VAT=True,[Nett]*17.5/100,[Nett])

The IF Statement is on a text box

Thanks
 
Hi

is VAT a control on the same report? in which case try

=IIf(VAT=True,[Nett]*17.5/100,[Nett])

otherwise try

=IIf(Reports.AFP!VAT=True,[Nett]*17.5/100,[Nett])

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top