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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using IIF in the Control Source 1

Status
Not open for further replies.

sjh

Programmer
Oct 29, 2001
263
US
Hi,

In my report, I have a text box. Depending on the value of a field [highway], I would like to change what's being displayed. This is the Control source.

=IIf([highway]="Unknown", "*", [highway])

But when I run the report, I get the "Error #".

What am I doing incorrectly???

Thanks for your help!
SJH
 
is your text box named "Highway"? if so, change the name to like Highway1. for some reason it doesn't like it when the name of the text box is the same name as the field if you have a calculation in the text box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top