Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to add leading zero's

Status
Not open for further replies.

pduncan

IS-IT--Management
Jun 20, 2003
203
US
I have a query with this in the field position:

batch: DLookUp("[ZbatchNo]","tblZbatchNo","ZID=1")

How can I add 5 zero's to the front (i.e. left) of this number?

thanks

Thanks, PDUNCAN
Memphis, TN - USA
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.
 
Something like this ?
batch: "00000" & DLookUp("[ZbatchNo]","tblZbatchNo","ZID=1")
Or this ?
batch: Format(DLookUp("[ZbatchNo]","tblZbatchNo","ZID=1"),"00000")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top