10-18-2013 06:48 AM
Hello,
I like to create a new table in an access database.
The problem is to create an ID field with autoincrement. I can add "not null" and "primary key" to the field but not the "autoincrement" option.
Do you have a solution for that problem?
Thank you
Marcus
Solved! Go to Solution.
10-18-2013 07:31 AM
Field i.e. new record or new column?
10-18-2013 07:36 AM
Hi Ranjeet_Singh,
thanks for your replay.
I create a new table with a new column called "ID" which schoud be "autoincrement".
The records will be added later.
10-18-2013 10:54 AM
Isn't that a question for Microsoft, the Access help, or a simple google search?
10-18-2013 09:26 PM
Through SQL you can change the column name I think.
Just google the topic
10-21-2013 01:07 AM
I think it is a problem with the Database Connectivity Toolkit (DCT).
I changed from the ADO Toolkit (http://www.ib-berger.com/index.php?action=adotool) to the DCT.
With ADO it worked fine. But I have to change the code to the DCT. Actually most thinks are working but the autoincrement makes the only problem.
The Picture shows the code of creation.
Hope you can help me.
It is no option to create the tables manually.
Thanks for your help.
10-21-2013 07:28 AM
May be but this is also because all database providers not provide all the functionality.
10-21-2013 07:29 AM
Here must be an option to read the current primary key number. Search
10-21-2013 07:33 AM
It seems that if the Autoincrement doesn't work you can try Counter as column specification.
/Y
10-21-2013 07:43 AM
Hope this helps him. Good job