how to remove zero from the begining of a string in access by query ?

E_Gold

Registered User.
Local time
Tomorrow, 00:04
Joined
Sep 18, 2010
Messages
26
hi

how to remove zero from the begining of a string in access by query ?

for example:

00001234 -> 1234

000abc -> abc

thanks in advance
 
thanks for the help,

but val(string) work fine only for numbers.

if i try val(A000123) i'll get 0

how to remove zero for not only numbers ?
 
If you simply want to strip out All zeros, you could use the Replace() function.

Also the last post in the thread linked to in my previous post has some code that will only strip out leading Zeros.
 
the real question is

why do you need to get the numeric value of a string? what are you using the result for?
 

Users who are viewing this thread

Back
Top Bottom