I have a formula in excel that produces the text before the second "space" that I need to use in access.
This is my excel formula:
=IF((LEN(C6)-LEN(SUBSTITUTE(C6," ",""))<=1),C6,(LEFT(C6,FIND(" ",C6,FIND(" ",C6,1)+1)-1)))
This is what I tried in access, but I am getting #Error:
Traveler: IIf((Len([Vendor])-Len(Replace([Vendor]," ",""))<=1),[Vendor],(Left([Vendor],InStr(" ",[Vendor],InStr(" ",[Vendor],1)+1)-1)))
Please help!