lstaple
asked on
Update Query - Pad String with Leading Zeros
I am trying to write an update query that will convert all of my records in a field to 14 digits with leading zeros (0).
So, instead of
19750
745513265
I would like
00000000019750
00000745513265
In Excel, I do it using =Rept("0",14-Len(B1))& B1, but cannot figure out the syntax in Access.
This must be simple, but I am tearing my hair out. Please help. Thanks.
So, instead of
19750
745513265
I would like
00000000019750
00000745513265
In Excel, I do it using =Rept("0",14-Len(B1))& B1, but cannot figure out the syntax in Access.
This must be simple, but I am tearing my hair out. Please help. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then next time use EE sooner ;-)
I personally stop working on a problem when it takes longer as one hour. Then it's time to ask a collegue (or EE)
Success with the application !
Nic;o)
I personally stop working on a problem when it takes longer as one hour. Then it's time to ask a collegue (or EE)
Success with the application !
Nic;o)
ASKER