Update Query and ignore spaces

Luddite Lad

Registered User.
Local time
Tomorrow, 00:20
Joined
Aug 23, 2005
Messages
177
I have an update query that creates a reference.

part of the update is the following code

Code:
(Left([clientname],Len([clientname])-(Len([clientname])-3)))

Which works fine. What I'm wondering is if there is a way to ignore any spaces that might be in the first three characters. So in other words simply pick up the first three alpha numerics?
 
Try clientname = Replace( clientname, " ", "" )

Then Left( clientname, 3 )
 
Just what I was looking for, thanks :)

I used
Code:
(Left(Replace([clientname]," ",""),3))
 

Users who are viewing this thread

Back
Top Bottom