Format Auto Number in MS Access 2000

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Aug 9th, 2004, 20:37
New Member
Join Date: Aug 2004
Location: USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Aug 9th, 2004, 20:55
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,193
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Aug 10th, 2004, 13:37
New Member
Join Date: Aug 2004
Location: USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Rob. Must be why I couldnt get it to work LOL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
format, auto, number, access, 2000

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 01:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved