Hi Peter,
John's correct in that the number will display as 2004-xxxx in 2005, 2006
and later years, and that the number will continue to increment rather than
starting over at the beginning of the year!
Look at his suggestion in his previous post if you are looking for it to
start over at the beginning of the year.
Eric
--------------------
| From: John Vinson <jvinson@STOP_SPAM.WysardOfInfo.com>
| Newsgroups: microsoft.public.access.tablesdbdesign
| Subject: Re: Creating a customized counter?
| Date: Mon, 19 Jan 2004 18:26:25 -0700
| Reply-To: (e-mail address removed)
| Message-ID: <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
| X-Newsreader: Forte Agent 1.8/32.548
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| NNTP-Posting-Host: 10.6.1.33
| X-Original-NNTP-Posting-Host: 10.6.1.33
| X-Trace: 19 Jan 2004 18:22:26 -0700, 10.6.1.33
| X-Original-Trace: 19 Jan 2004 18:22:26 -0700, 10.6.1.33
| Lines: 24
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix
..com!newsfeed.cwix.com!news.maxwell.syr.edu!news.glorb.com!newshosting.com!n
x02.iad01.newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontierne
t.net!news-west.eli.net!nntp.widaho.net!10.6.1.33
| Xref: cpmsftngxa07.phx.gbl microsoft.public.access.tablesdbdesign:74440
| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
|
| On Mon, 19 Jan 2004 23:59:47 GMT, (e-mail address removed)
| ("Petrucci2000") wrote:
|
| >Hi Peter,
| >
| >You set the Format property of the AutoNumber equal to
| > \200"4-"0000
|
| Note that this will continue to display the number as 2004-xxxx in
| 2005, 2006 and later years, and that the number will continue to
| increment rather than starting over at the beginning of the year!
| Peter should use one of your other suggestions, in order to meet the
| real requirement.
|
| >Other ideas include:
| >209830 ACC2000: How to Increment the Numeric Portion of a String
| >
http://support.microsoft.com/?id=209830
| >
| >199679 ACC2000: How to Simulate a Dynamic Counter in a Table or a Query
to
| >
http://support.microsoft.com/?id=199679
|
| John W. Vinson[MVP]
| Come for live chats every Tuesday and Thursday
|
http://go.compuserve.com/msdevapps?loc=us&access=public
|