A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Number format problem



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2004, 05:30 PM
Stu
external usenet poster
 
Posts: n/a
Default Number format problem

I believe I have experienced this problem before but I'm
not sure. Isn't there a problem when number data is
inserted into a table like: 01001, 02002 ??? I think the
key is beginning with 0(something)? Once written to the
database the data is converted as binary. I would
appreciate info on this situation as I am beginning to
establish a table where this is an issue. Thanks for any
help. Access2000 user.
  #2  
Old July 16th, 2004, 06:14 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Number format problem

Use a Text field if you wish to store a significant leading zero.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Stu" wrote in message
...
I believe I have experienced this problem before but I'm
not sure. Isn't there a problem when number data is
inserted into a table like: 01001, 02002 ??? I think the
key is beginning with 0(something)? Once written to the
database the data is converted as binary. I would
appreciate info on this situation as I am beginning to
establish a table where this is an issue. Thanks for any
help. Access2000 user.



  #3  
Old July 17th, 2004, 02:26 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Number format problem

Stu

To follow on Allen's suggestion, I'd ask if what you are storing is actually
numbers, or merely digits? If you won't ever be doing any arithmetic on the
contents of this field, you don't have "numbers".

For example, the eastern US has some zip/postal codes like "02022". While
this appears to be a "number", there is no need to "add" zip codes, so it is
merely a string of characters (digits, in fact).

If you want to have a true number DISPLAYED with one/more leading zeros,
look into Format. That won't change what is stored, merely how it gets
displayed.

--
Good luck

Jeff Boyce
Access MVP

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incoming Mail Format Problem GK1963 General Discussion 1 July 19th, 2004 08:54 PM
Converting a number to Hour & Min format Morgan General Discussion 6 June 22nd, 2004 03:58 PM
format cell problem General Discussion 2 June 17th, 2004 06:11 PM
Number Format Wendy Tables 1 June 8th, 2004 06:50 AM
Number Format Problem Lana Worksheet Functions 6 February 16th, 2004 08:57 PM


All times are GMT +1. The time now is 06:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.