Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / August 2005

Tip: Looking for answers? Try searching our database.

access 2003 zero fill field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NC Beach Bum - 31 Aug 2005 19:50 GMT
I must zero fill a text field in a query but not sure how to go about it.  
Suggestions anyone?

Thanks!
Signature

NC Beach Bum

Chaim - 31 Aug 2005 21:53 GMT
Try String() function. See Basic Language Reference in your Access Help.

Good Luck!
--

Chaim

> I must zero fill a text field in a query but not sure how to go about it.
> Suggestions anyone?
>
> Thanks!
> --
> NC Beach Bum
NC Beach Bum - 31 Aug 2005 22:10 GMT
Cham,

Thanks for the tip!  
Your answer led me to the following solution to resolve right justification
of data with leading zero's to pad the data in a fixed length field.  

Checks dollar value = ChecksAmount
The character field is a fixed 10 characters in length.
The line of code used:
 ChkAmt: String(10-Len(LTrim([ChecksAmount])),"0") & [ChecksAmount]

The output ended up as  
0000008192
0030128300
etc.

Thanks! again.

Signature

NC Beach Bum

> Try String() function. See Basic Language Reference in your Access Help.
>
[quoted text clipped - 9 lines]
> > --
> > NC Beach Bum
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.