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 / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Number Format - leading zeros

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
=Ray= - 14 Jun 2007 16:16 GMT
I want to enter the year in a number field as 07, but it displays as 7. I
tried putting the format 00, which does what I want in Excel, but it doesn't
do it in Acess when I switch to datasheet view.

Can someone help?

Thanks,
=Ray=
Wayne-I-M - 14 Jun 2007 16:55 GMT
Hi Ray

Numbers can't have a leading zero.  If you know you only ever want 1 leading
zero (like 07) then set the format like that but it may cause a problem in
2010 (your year will be 00).  

Best bet would be to set the format as text.

If you have a time/date field then set the format on a form as yy or yyyy

Signature

Wayne
Manchester, England.

> I want to enter the year in a number field as 07, but it displays as 7. I
> tried putting the format 00, which does what I want in Excel, but it doesn't
[quoted text clipped - 4 lines]
> Thanks,
> =Ray=
Douglas J. Steele - 14 Jun 2007 16:58 GMT
Since leading zeroes are meaningless for numeric values, there's no way to
keep them.

Try changing your field to text.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I want to enter the year in a number field as 07, but it displays as 7. I
> tried putting the format 00, which does what I want in Excel, but it
[quoted text clipped - 5 lines]
> Thanks,
> =Ray=
 
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.