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  

Access 2007: Formatting a text field in a datasheet



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2009, 05:21 PM posted to microsoft.public.access.tablesdbdesign
Doug
external usenet poster
 
Posts: 616
Default Access 2007: Formatting a text field in a datasheet

A few questions:

1. How do I format a text field to get leading zeroes, e.g. if I enter 321
into the field it will display as 000321. (I know how to do this with a
numeric field, but not a text field.)

2. What is the difference between the @ format and the & format in a text
field in an Access 2007 table? I can see no difference playing with these
two formats.

3. Does anyone know where I can find good/comprehensive examples online for
formatting fields of the different data types in an Access table?

Thanks,

Doug
  #2  
Old June 8th, 2009, 05:39 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Access 2007: Formatting a text field in a datasheet

Format([YourField], "000000")

"Doug" wrote:

A few questions:

1. How do I format a text field to get leading zeroes, e.g. if I enter 321
into the field it will display as 000321. (I know how to do this with a
numeric field, but not a text field.)

2. What is the difference between the @ format and the & format in a text
field in an Access 2007 table? I can see no difference playing with these
two formats.

3. Does anyone know where I can find good/comprehensive examples online for
formatting fields of the different data types in an Access table?

Thanks,

Doug

 




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 08:58 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.