![]() |
|
|
#1
|
|||
|
|||
|
Dear All
I have a table with an autonumber field. This field generates auto numbering like 1,2,3,4,5.... etc. I wish to customize this result like B-001, B-002, B-003....etc. Is it possible ? If yes then how? Please help me. Thanks. |
|
#2
|
|||
|
|||
|
The only way to do this is to use a manual primary key which I nearly always try and avoid.
For your example you would use a text field of length 5 and set it as the primary key. You'd then need to write some validation to validate the input of the key and some code to generate the key. |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with autonumber field in a form | admaldo | Forms | 0 | 02-25-2008 08:09 AM |
| AUTONUMBER | J A F F A | Database Design | 1 | 10-03-2007 08:30 AM |
| Quick way to stuff field names into text field | kfinpgh | Programming | 0 | 01-04-2007 10:13 AM |
| duplicate autonumber | rayc | Access | 0 | 01-16-2006 06:57 AM |
do all primary keys use autonumber
|
k | Database Design | 4 | 11-22-2005 06:32 AM |