Rows showing as #DELETED

后端 未结 10 962
春和景丽
春和景丽 2020-12-16 03:48

I have rows of data in a table showing as #DELETED on one computer when using Access but they are fine in both the SQL database and on other computers using

10条回答
  •  眼角桃花
    2020-12-16 04:04

    If you are linking a table from Views on SQL, then since ROW_NUMBER() is bigint, MS Access would show #Deleted, but if you refresh a row, then it shows you the value. To overcome this, you could make use of cast. E.g.

    CAST((Row_number() OVER(ORDER BY AllColumns.AnyColumnNameSuchAsDateColumn DESC)) AS INT) AS 'id', AllColumns.* FROM (SELECT AnyColumnNameSuchAsDateColumn, ...etc FROM YourTableName WHERE YourCondition) AS AllColumns

提交回复
热议问题