johnmerlino
Registered User.
- Local time
- Today, 09:17
- Joined
- Oct 14, 2010
- Messages
- 81
Hey all,
I have this query:
SELECT p.aname INTO GenericForgottenWithoutInitial
FROM (SELECT Left([TheName],IIf(InStrRev([TheName]," ")>1, InStrRev([TheName]," ")-1,Len([TheName]))) AS aname FROM TheForgotten) AS p;
Problem is it pulls content to left of first space because of this part:
InStrRev([TheName]," ")-1,Len([TheName]))
I would like it to pull content to left of the second, not first space.
Thanks for response
I have this query:
SELECT p.aname INTO GenericForgottenWithoutInitial
FROM (SELECT Left([TheName],IIf(InStrRev([TheName]," ")>1, InStrRev([TheName]," ")-1,Len([TheName]))) AS aname FROM TheForgotten) AS p;
Problem is it pulls content to left of first space because of this part:
InStrRev([TheName]," ")-1,Len([TheName]))
I would like it to pull content to left of the second, not first space.
Thanks for response