Results 1 to 2 of 2

Thread: Simple Question on AutoNumber

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    hongkong
    Posts
    251

    Simple Question on AutoNumber

    A simple Database question in MS Access:

    I wish to ask if it is possible that I can manually set a field of autonumber type to a particular number by code and that number is not duplicate with an existing record when inserting records into the database? Or this will generate error?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    No, auto numbers cannot be modifed. Either you use them, or you don't is the philosiphy. If you want to have a custom auto-numbering routine, you need to change the fields type from autonumber to long or text (depending on what you want the id to look like).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width