Scott Palmer
asked on
Identifyng one word or two in a field
I have a field which somtimes includes two words and I only need the first word. I can use this to show only the first word:
Group1: Left$([Group],InStr(1,[Gro up]," ")-1)
But when I use it I get #ERROR for all of the fields that only have one word. How do identify the field has one or two words so I can skip if it only has one word?
Thanks.
Group1: Left$([Group],InStr(1,[Gro
But when I use it I get #ERROR for all of the fields that only have one word. How do identify the field has one or two words so I can skip if it only has one word?
Thanks.
ASKER
Still getting #ERROR for the fields that have one word.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did it. I was about to say that I am importing from an Excel spreadsheet so the space might have some sort of funny format.
Thanks.
Thanks.
try this
Group1: Left$([Group] & " ",InStr(1,[Group]," ")-1)