thingssocomplex
Registered User.
- Local time
- Today, 07:27
- Joined
- Feb 9, 2009
- Messages
- 178
I need to remove leading zeros from a file that is exported and imported in to another application, the field must be text, I have used the below SQL but it is not removing some of the leading zeros, can somebody please help. For information the length of the code is always 7 digits and it can be one or more leading zeros for example
0012345
0123456
0012345
0123456
Code:
UPDATE TableOne.FieldOne = Replace(LTrim(Replace([TableOne].[FieldOne],"0"," "))," ","0");