Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 6th, 2008, 04:15 PM
Kissi
Guest
 
Posts: n/a
Default Help with AutoNumber Data Type

I would like the Auto Number field to have 7 digits and the first character
"E" eg ; E0000001, E0000002...,E00000120. Can someone help please?



  #2  
Old September 6th, 2008, 04:35 PM
Allen Browne
Guest
 
Posts: n/a
Default Re: Help with AutoNumber Data Type

"Kissi" <kissi5559@aol.comwrote in message
news:E_wwk.8511$Ra1.733@fe18.usenetserver.com...
Quote:
>I would like the Auto Number field to have 7 digits and the first character
>"E" eg ; E0000001, E0000002...,E00000120. Can someone help please?
An Auto Number is a number, so you can't have an E in it.

Could you just print an E on your forms/reports, as a table, or as a
concatenated field:
="E" & [YourAutoNumberFieldNameHere]

--
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.

  #3  
Old September 6th, 2008, 04:45 PM
Rick Brandt
Guest
 
Posts: n/a
Default Re: Help with AutoNumber Data Type

Kissi wrote:
Quote:
I would like the Auto Number field to have 7 digits and the first
character "E" eg ; E0000001, E0000002...,E00000120. Can someone help
please?
You can *display* all such values with a format property of...

"\E0000000"

It is not possible with an AutoNumber to (nor necessary) that the values be
saved with that format.

Of course AutoNumbers will naturally develop gaps in most cases so if you
don't want that then you have to use a numering system other than
AutoNumber. Even in those cases I would still not save the data as you
indicate, but only display it that way on forms and reports.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles