Query Data

kitty77

Registered User.
Local time
Yesterday, 22:53
Joined
May 27, 2019
Messages
715
I have a table that has data that looks like this... I need to create a query that gives me everything before the first space

ADVA80403 Advanced
AIRC23072 Air
BETV16523 Tom

Need it to look like this.
ADVA80403
AIRC23072
BETV16523
 
You would use an InStr() inside a Mid():



Mid extracts a substring from a string and InStr Identifies the spot in a string where a specific substring (or character/space) occurs.
 
Don’t you mean inside a left function?
 
Nope. Inside a Mid()

Left() will work in this case. But Left() really isn't needed because Mid() does everything it does and more.
 
after over 700 posts you still don't know the basics?

left([cust], instr([cust]," ")-1)
Thanks for the example but keep you 2 cents to yourself next time. Sorry I'm not an expert like you!
 
no problems, I'll not assist you in the future in case it offends
 

Users who are viewing this thread

Back
Top Bottom