IIF len

slimjen1

Registered User.
Local time
Today, 08:20
Joined
Jun 13, 2006
Messages
562
All, using access 2010, I'm trying to use len in an IIF statement:

Code:
Type: IIf(Len([qryMaster].[PAYROLL])<3,[”Active”],["CLIENT”])

When I run the query; it puts brackets around "Active" and "Client" and it doesn't return any values.
What am I doing wrong please.
 
Remove the brackets.
Brackets mean fields.
If you WANT fields, remove the quotes.
 
this is what I'm saying; it automatically puts brackets around the name I put in quotes. If I remove them; it comes back.
 
I got it. I just retyped it. I was copying the code and it didn't recognize the "". Thanks
 

Users who are viewing this thread

Back
Top Bottom