E E_Gold Registered User. Local time Today, 17:07 Joined Sep 18, 2010 Messages 26 Mar 18, 2012 #1 hi how to remove zero from the begining of a string in access by query ? for example: 00001234 -> 1234 000abc -> abc thanks in advance
hi how to remove zero from the begining of a string in access by query ? for example: 00001234 -> 1234 000abc -> abc thanks in advance
John Big Booty AWF VIP Local time Tomorrow, 03:07 Joined Aug 29, 2005 Messages 8,243 Mar 18, 2012 #2 Perhaps the discussion in this thread will give you some pointers.
E E_Gold Registered User. Local time Today, 17:07 Joined Sep 18, 2010 Messages 26 Mar 18, 2012 #3 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 ?
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 ?
John Big Booty AWF VIP Local time Tomorrow, 03:07 Joined Aug 29, 2005 Messages 8,243 Mar 18, 2012 #4 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.
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.
gemma-the-husky Super Moderator Staff member Local time Today, 16:07 Joined Sep 12, 2006 Messages 16,072 Mar 19, 2012 #5 the real question is why do you need to get the numeric value of a string? what are you using the result for?
the real question is why do you need to get the numeric value of a string? what are you using the result for?