MS Access 2007 | #Deleted

This might come in handy if you are accessing SQL Server 2005 tables from Access:


Using Microsoft Access (2003 and 2007) to link to tables on a SQL 2005 SP2 server is working most of the time. On some particular tables (MS Dynamics AX database) the results of the linked table for all rows and columns is #Deleted.


Do these tables have a primary key of data type BIGINT? I was receiving the same #error on certain tables and it turns out Access can’t handle tables with a primary key column of BIGINT. These are some possible work arounds for that scenario:

1) Change the datatype of the primary key to INT.
2) Create a view of the table using “CAST as INT” for the BIGINT field.

Click here for the original post.