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



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2009, 06:11 PM posted to microsoft.public.access.tablesdbdesign
Montana Rain
external usenet poster
 
Posts: 7
Default Number Format

Is there a way of entering a number, never to exceed 999, and have it
show in a form, table, & query as three digits - such as 056?
  #2  
Old February 23rd, 2009, 06:39 PM posted to microsoft.public.access.tablesdbdesign
fredg
external usenet poster
 
Posts: 4,386
Default Number Format

On Mon, 23 Feb 2009 10:11:37 -0800 (PST), Montana Rain wrote:

Is there a way of entering a number, never to exceed 999, and have it
show in a form, table, & query as three digits - such as 056?


Set the format property of the field or a bound control to:
000
or you could use an unbound control on your form or report:
=Format([NumberField],"000")

As far as showing the value with 3 digits in a table, be aware that
tables are for storing data, not displaying it, so there should be no
real reason to care what the value display's as.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old February 23rd, 2009, 11:39 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Number Format

In the table field properties set the validation to 1000 so it will
not exceed 999.
--
KARL DEWEY
Build a little - Test a little


"Montana Rain" wrote:

Is there a way of entering a number, never to exceed 999, and have it
show in a form, table, & query as three digits - such as 056?

 




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


All times are GMT +1. The time now is 09:12 AM.


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