dbTalk Databases Forums  

formatting

comp.databases.ms-access comp.databases.ms-access


Discuss formatting in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Terry Carroll
 
Posts: n/a

Default formatting - 07-20-2010 , 09:12 AM






I would like to format a field to contain seven characters. For instance 37593 would be 0037593. Is there an easy way to do this through the format field property in the design view of the table?

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: formatting - 07-20-2010 , 10:33 AM






Terry Carroll wrote:

Quote:
I would like to format a field to contain seven characters. For instance 37593 would be 0037593. Is there an easy way to do this through the format field property in the design view of the table?

x = 1
? format(x,"0000000")
0000001
x = 12345
? format(x,"0000000")
0012345

Reply With Quote
  #3  
Old   
Marshall Barton
 
Posts: n/a

Default Re: formatting - 07-20-2010 , 06:52 PM



Salad wrote:

Quote:
Terry Carroll wrote:

I would like to format a field to contain seven characters. For instance 37593 would be 0037593. Is there an easy way to do this through the format field property in the design view of the table?


x = 1
? format(x,"0000000")
0000001
x = 12345
? format(x,"0000000")
0012345
There was a follow up in the MS Answers forum that said the
field was a Text field and that it can contain 3 - 7
characters. I can not see a way to do that using the Format
PROPERTY. Easy enough with an expression, but then the
query field would not be updatable.

--
Marsh

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: formatting - 07-20-2010 , 08:39 PM



Marshall Barton wrote:
Quote:
Salad wrote:


Terry Carroll wrote:


I would like to format a field to contain seven characters. For instance 37593 would be 0037593. Is there an easy way to do this through the format field property in the design view of the table?


x = 1
? format(x,"0000000")
0000001
x = 12345
? format(x,"0000000")
0012345


There was a follow up in the MS Answers forum that said the
field was a Text field and that it can contain 3 - 7
characters. I can not see a way to do that using the Format
PROPERTY. Easy enough with an expression, but then the
query field would not be updatable.

Hmmm. I simply thought he wanted to zero pad some output. Never heard
of MS Answers. Is that the new forum that replaced the newsgroups?

Reply With Quote
  #5  
Old   
Marshall Barton
 
Posts: n/a

Default Re: formatting - 07-20-2010 , 10:40 PM



Salad wrote:
Quote:
Marshall Barton wrote:
Salad wrote:
Terry Carroll wrote:
I would like to format a field to contain seven characters. For instance 37593 would be 0037593. Is there an easy way to do this through the format field property in the design view of the table?

x = 1
? format(x,"0000000")
0000001
x = 12345
? format(x,"0000000")
0012345

There was a follow up in the MS Answers forum that said the
field was a Text field and that it can contain 3 - 7
characters. I can not see a way to do that using the Format
PROPERTY. Easy enough with an expression, but then the
query field would not be updatable.

Hmmm. I simply thought he wanted to zero pad some output. Never heard
of MS Answers. Is that the new forum that replaced the newsgroups?

MS Answers may be MS's idea of a replacment, but it is
nowhere near up to what we had before, not in ease of use
nor in traffic.

--
Marsh

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.