Drop everything after a certain Character

BIGPROFITT

New member
Local time
Today, 18:27
Joined
Jun 24, 2008
Messages
2
I have a Query with a field called a9RecipientName, that returns a text string. The text string is formatted like: LastName/FirstNames. I need to drop/trim all of the characters after the /.

Thanks
 
Something like:

left(instr("MyField","/")
 
Something like:

left(instr("MyField","/")

Ken is right, but that command will leave the "/" at the end of the string. If you do not want the "/", then change it to

left(instr("MyField","/") - 1
 
Ken he did say after / so maybe your first formula is the one he wants.

Brian
 
Whoops:

Left(MyField, InStr(MyField, "/") - 1)

:)
 
Big has all of one post to his credit so I'm guessing we'll never know :p
 
Whoops:

Left(MyField, InStr(MyField, "/") - 1)

:)

LOL so many experts so many simple errors, we read what we expect to see , glad you finally got it sorted , can we all take our dunces caps off now.:D

Brian
 
I try to beat everybody in on the so-called 'easy ones' and end up making a bunch of mistakes - :p
 
I know what you mean. Even when I give credit to someone else, I forget the ")" :mad:
 
Its the easy ones we make the silly mistakes on as we tend to be complacent, I felt pleased with myself for spotting the missing ) , completely missed the missing fieldname. :o

Brian
 
I was trying to figure out how he could check to see if the '/' even existed before it was parsed so there wouldn't be an potential error but I don't think I'll waste my time :p
 

Users who are viewing this thread

Back
Top Bottom