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

Error with IIF(IsNull([AgentName]),[Address2],[AgentAddress2]) 1

Status
Not open for further replies.

Triacona

Technical User
Jun 11, 2009
462
GB
Dear All,

Thank you for a great forum.
I seem to be getting an error on the following formulae within my report PolAcknowledgementLetter:
Code:
=IIf(IsNull([AgentName]),[Address2],[AgentAddress2])
=IIf(IsNull([AgentName]),[Address3],[AgentAddress3])
=IIf(IsNull([AgentName]),[Address4],[AgentAddress4])
etc...
The error occurs when the report is run.
It prints
in place of the text box.
Except this one works..!!
Code:
=IIf(IsNull([AgentName]),[Address1],[AgentAddress1])
And if the AgentName is not blank all the agents address lines get printed (1-5).

Please help[sadeyes]
I just keep going around in circles.[spin2]
Thank you for your forthcoming help.[bigsmile]

Thank you,

Kind regards

Triacona
 
Dear Duane,

Thanks for your response.
Well to answer your question, when I just add Address1(2,3,4,5) with lable it displayes when a customer has an address, if the customer does not have an address then it is blank, the same for the AgentAddress1(2,3,4,5)

It is only when I use the formula that it does not display...
Please help [cry]
Thank you[bigsmile]

Thank you,

Kind regards

Triacona
 
Dear Duane,

You are an ACE man!![2thumbsup][bigsmile]
For some reason the report named the text box the same as the field names in question so caused the error!

Thank you again!
Have a star!


Thank you,

Kind regards

Triacona
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top