Results 1 to 4 of 4

Thread: From Acces to SQL -- auto numbers

  1. #1
    Join Date
    Mar 2008
    Posts
    2

    Red face From Acces to SQL -- auto numbers

    Can you add info using the insert SQL command and make it work if the first column is an auto number ?

  2. #2
    Join Date
    Jun 2004
    Location
    Atlanta and Manhattan
    Posts
    607

    Sounds Reasonable ...

    What you propose sounds fine ... If the table contains an AutoNumber field, do not include this field in the SQL INSERT command (the value of this field will be taken care of automatically).

    Background and Added Info:

    An AutoNumber field (also refered to as a Counter field) is a data type that automatically creates and stores a number for each item added to a table. If you append records to a table with an AutoNumber field and you do not want the AutoNumbered field to be renumbered, you must include the AutoNumber field number in the query. If you do not include the AutoNumber field, the appended items will be assigned a new AutoNumber field value.

    HTH. Good Luck!

    Bill

  3. #3
    Join Date
    Mar 2008
    Posts
    2

    Thanks

    Bill Thanks!! I'll let you know what happens.

  4. #4
    Join Date
    Jun 2004
    Location
    Atlanta and Manhattan
    Posts
    607

    Good Luck - and Thanks ...

    Posting your evolving experiences is appreciated by the community in general.

    Best of luck!

    Bill

Posting Permissions

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