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  

entering number versus text.



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2005, 01:43 AM
DONNAK
external usenet poster
 
Posts: n/a
Default entering number versus text.

I am new to access and am trying to duplicate a program that was not
2000K compliant. The first problem I have encountered is: four
fields i.e. 041-04-291-001 I would like these four fields to be
numbers yet find that the number “0” will not show up if I enter it
as a number but will if I enter as text. I’m sure this is relatively
simple to many but not to the beginner – any help would be
appreciated.

  #2  
Old April 27th, 2005, 04:33 AM
tina
external usenet poster
 
Posts: n/a
Default

in Access, the rule of thumb is that you store a value as a number when
you're going to use it to perform mathematical calculations, otherwise, you
store it as text. personally, i often break that rule for the sake of
convenience and under specific conditions, but rarely when i need to include
leading zeros in my values.

however, if you really want to store the values as number data type, you can
format the field to show leading zeros, as

Format(MyNumberField, "000")

however, keep in mind that formatting only affects the display of the data,
NOT what value is actually stored.

hth


"DONNAK" wrote in
message ...
I am new to access and am trying to duplicate a program that was not
2000K compliant. The first problem I have encountered is: four
fields i.e. 041-04-291-001 I would like these four fields to be
numbers yet find that the number “0” will not show up if I enter it
as a number but will if I enter as text. I’m sure this is relatively
simple to many but not to the beginner – any help would be
appreciated.



 




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
Query for 'confirmation' rogge Running & Setting Up Queries 8 April 19th, 2005 03:26 PM
Combo Box (1st) Populating Text Box (2nd) Field AccessRookie Using Forms 1 April 6th, 2005 11:37 PM
Combo Box & Text Box AccessRookie Using Forms 3 April 6th, 2005 11:33 PM
Change font of part of text John Powerpoint 7 March 15th, 2005 10:10 AM
Number of objects thomak General Discussion 3 February 17th, 2005 11:58 AM


All times are GMT +1. The time now is 01:00 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.