Query Issue

joesmithf1

Registered User.
Local time
Today, 15:51
Joined
Oct 5, 2006
Messages
56
Hi,

What's wrong with this code?: Employee:IIf(right(dedtype-Cd,1)='E'),'Employee','Null')

I am entering this in the Query Design View window.

MS Access error message says I have "the wrong number of argument."

Thank you.
 
Maybe the dash in your field name is fouling this up; also not sure about using the single quotes.

Employee:IIf(right([dedtype-Cd],1)="E"),"Employee","Null")
 
There's one too many parentheses:
Code:
Employee:IIf(right([dedtype-Cd],1)="E","Employee","Null")
 

Users who are viewing this thread

Back
Top Bottom