View Full Version : Inserting data into a linked table


k_heppner
04-25-2000, 03:06 PM
The database I am using is running on an SQL server, using MS Access as the front end. One of the tables has a column CompanyID which is an auto-incremented primary key. I am unable to add a new company from a form unless I input the CompanyID - it isn't doing it automatically. I get an error until I put in a company ID, any suggestions would be greatly appreciated!

Pat Hartman
04-26-2000, 06:43 PM
Talk to your DBA. I think he has to create a trigger for the field in the SQL table to make this work for you.

k_heppner
04-27-2000, 01:28 PM
Thanks - I'll do that. (I am the dba)
http://www.access-programmers.co.uk/ubb/smile.gif

OPMCoordinator
06-20-2004, 02:51 PM
Hello!

I had the same symptoms and here is how i fixed it...

The primary key was set on the Server table OK, but it was not set up as identiy = yes.

I changed that an off it went fine.
:)

hope this helps someone.

Mike Collett