K
kj96
Is there an Access function (or combination of functions) that can remove
leading zeroes from a text string?
leading zeroes from a text string?
Is there an Access function (or combination of functions) that can remove
leading zeroes from a text string?
Is there an Access function (or combination of functions) that can remove
leading zeroes from a text string?
John .. you did recursion ... eeewww!!! LOL!
If it's text, or mixed numeric and text, after the zeros, you'll need
a little VBA function. Here's a recursive one off the top of my head,
test it first:
Tom Lake said:Why not use LTrim?
Tom Lake
OK, I know why. I thought of spaces while reading Zeros. Never mind!
LTrim(Str(Val(n)))
should work, though.
redundant since Val() already does the trimming... and it will fail
for input data such as "0000A32KW". The OP hasn't posted back with
more details so we may never know!