Query to Transform # of Characters in a Field

sbf2014

Registered User.
Local time
Today, 17:46
Joined
Mar 28, 2014
Messages
17
I have a table with acct numbers of various lengths, ie:

246
18
36895
352119
472

I need to run a query so that all of the acct numbers are 8 characters long with zeros as placeholders in front of the actual acct numbers, ie:

00000246
00000018
00036895
00352119
00000472

I tried using the expression NewAcctNo: 00000000+[AcctNo], but that did not fix the problem.

Any suggestions?
 
NewAcctNo:Format([AcctNo],"000000000")
 
Last edited:
Amazing, thank you! Worked like a charm.
 

Users who are viewing this thread

Back
Top Bottom