This is a discussion on "Format Auto Number in MS Access 2000" within the Databases section. This forum, and the thread "Format Auto Number in MS Access 2000 are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Format Auto Number in MS Access 2000
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Format Auto Number in MS Access 2000
Hi, I've created a database of work orders that uses the tracking number as the primary key set to autonumber. This has been working great, but now the powers to be asked me to change the tracking number to look at the year the work order is created, then add the last two numbers of the current year to the begining of the number (ex. wo# 2019 created in year 2004 would look like "04-2019")How would I change the auto number to do this, and also not lose the current wo#'? The date originated field is set to Date/Time, Short Date, 99/99/0000;0;_ and default value is Now()
Thnx, dret |
|
|
|
#2
|
||||
|
||||
|
you cannot format an autonumber field... this is created by, and controlled only by access. You could create another key field, and manually set this key's values yourself (or via scripts)
The primary key could be set to both autonumber and the manual key field combined! Hope this helps.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
Thanks Rob. Must be why I couldnt get it to work LOL
|
![]() |
| Tags |
| format, auto, number, access, 2000 |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beyond 2000 Software | JustinStudios | Free Web Site Critique | 21 | Apr 13th, 2007 22:28 |
| Show a Number from Access in the webpage | redkyna | Databases | 3 | Aug 25th, 2004 15:59 |
| change auto number in access 2003 | Monie | Databases | 6 | Aug 25th, 2004 01:48 |
| MS Access 2000 | Kim | Databases | 3 | Jun 30th, 2004 20:39 |
| Ms Access.... Custom Autonumber Format | tycoon | Databases | 9 | Apr 19th, 2004 17:19 |