Link to home
Create AccountLog in
Avatar of SweetingA
SweetingA

asked on

Undefined Left In Expression

Can anyone help to solve this issue, works in Access 2007, fails in Acccess 2003.

Email2: IIf([Email]<>"",Left([Email],InStr(1,[Email],"#")-1),"")

Thanks
Avatar of Michele Segato
Michele Segato
Flag of Italy image

I think that the problem is not in Access version but in the data. I suppose that the problem arises when Email doesn't contain # (or did you mean @?)

Try to modify this way

Email2: IIf([Email]<>"" and InStr(1,[Email],"#")>1,Left([Email],InStr(1,[Email],"#")-1),"")
ASKER CERTIFIED SOLUTION
Avatar of Michele Segato
Michele Segato
Flag of Italy image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of SweetingA
SweetingA

ASKER

Spot on, i forgot that i refrence outlook and use novell at work.

Thanks