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

IIF In Report Field

Status
Not open for further replies.

vr

Programmer
Oct 14, 1999
54
US
Can anyone tell me what is wrong with this?

=IIf(IsNull([acctnumber]),[empnumber],[acctnumber])

I have this in the control source of a text box on a report. This is returning #Error in the preview of the report.

 
try this

=IIf([acctnumber] = is null),[empnumber],[acctnumber])

goofy I know
try it with a space and without

is null
isnull DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Make sure that the name of the control is not AcctNumber or EmpNumber. If it is, you would get that #Error message.
Joe Miller
joe.miller@flotech.net
 
Thank you Doug and Joe. My control was named AcctNumber.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top