Link to home
Start Free TrialLog in
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)Flag for United States of America

asked on

Access Linked Table unable to update or delete existing records in SQL Server Table

SQL Server 2005, Access 2003. Linked tables in Access. I can add new records but cannot update or delete them once added.

Kevin
Dialog1.bmp
Dialog2.bmp
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

This usiually appears when you have a form bound to the data, and you then have some SQL that is updating the data other than through the form interface, and then you try to do just that.

Is usually solved by requerying the form after each VBA data change to commit the record & reload.
Avatar of zorvek (Kevin Jones)

ASKER

No forms. Just a linked table.

Kevin
How are you connecting. Is this a mdb via ODBC or adp?
ODBC. I'm currently thinking it has something to do with a Bit datatype I defined in SQL Server.

Per chance, do you know how to define a boolean in SQL Server that shows up as a True/False value in Access?

Kevin
ASKER CERTIFIED SOLUTION
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That solved the problem. I also found some notes on using timestamp - it is a bigint which Access can't handle either. The solution was to use datetime and set the default value to getdate().

Thanks!

Kevin