IIF statement problems in a report

G

Guest

For my database I am attempting to do two things:
1. Typically tax can be calculated based on state(very easy)
2. Occasionally tax can be exempt or a couple of other conditions that make
tax not computable for this DB so I created a check box that displays an
input box for these situations. A calculated tax amount can be typed into
the box which saves the value in a typically blank field in my table. I have
tried using the following statement to tell the report which calculated
amount to use based on the situation. This statement is in the control
source property

=IIf(IsNull([Tax]),[txtSubTotal]*[Selected project
contact].Form!TaxRate,[Tax])

When the form is reviewed all that is displayed is "#Name"
Thank You,
Mike Konopinski
 
G

Guest

I dont understand, if this iif statment placed in a report then it should be

=IIf(IsNull([Tax]),[txtSubTotal]*[Selected project
contact].Report![TaxRate],[Tax])
If the field TaxRate placed on the report

But if the field TaxRate placed in a form then the syntax should be
=IIf(IsNull([Tax]),[txtSubTotal]*Forms![Selected project
contact].Form![TaxRate],[Tax])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top