This is a discussion on "Update autonumber field in Access Database" within the Databases section. This forum, and the thread "Update autonumber field in Access Database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Update autonumber field in Access Database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Update autonumber field in Access Database
I have a autonumber field in my Access Database, but it seemed that it can't be updated. I'm using Dreamweaver MX with the update record behavior. Is it possible to update an autonumber field?
|
|
|
|
||||
|
Hi Redkyna...
Autonumber fields are automatically generated by Access... they are controlled by access only. They cannot be changed once assigned. Use a primary key that is a number field, and manually assign ID's if you want to be able to update them. Do a search on these forums for autonumber field, for more info.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Thanks Rob.The reason why i want to keep it to an auto number is that i have also include a page to insert new records to the same database where the ID will have to increase for every new record. Any solution?
|
|
||||
|
If your solution calls for record ID's being incremental and there is no flexibility within that specification, then sure, the autonumber is the way to go (and is ideal for almost all situations)
I cannot understand WHY you would want to change a record ID once you have have added a record, but should this functionality be needed, then you will need another way of uniquely identifying records. One method could be to go down the path of using GUID's (Globally Unique IDentifier) One (as far as I know undocumented) way of generating a GUID is by using an object I discovered when trawling my registry (yeah, I have way to much time on hands). For your information, A GUID represents a Unique identifier - you cannot generate the same GUID more than once. A GUID has a very low (next to impossible) probability of being duplicated again in the next 50 years. To generate your GUID, use this code:
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| update, autonumber, field, access, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access Memo Field | sarahrobin | Databases | 0 | Feb 13th, 2007 08:15 |
| Access date field - update as record is updated | matrixbrawl | Databases | 0 | Jan 10th, 2007 09:58 |
| Access Autonumber Start Value | redkyna | Databases | 2 | Aug 25th, 2004 06:08 |
| Access Autonumber | redkyna | Databases | 2 | Aug 24th, 2004 09:37 |
| Ms Access.... Custom Autonumber Format | tycoon | Databases | 9 | Apr 19th, 2004 17:19 |