开发者

Visual Studio and an Access Database - Operation must use an updateable query

开发者 https://www.devze.com 2023-02-08 00:12 出处:网络
I a开发者_如何学JAVAm deploying an .accdb file to the same directory as my windows forms program is being installed.However when attempting to update data in the database i get a \"Operation must use

I a开发者_如何学JAVAm deploying an .accdb file to the same directory as my windows forms program is being installed. However when attempting to update data in the database i get a "Operation must use an updateable query" error.

The file attributes are not read only, however when I open the accdb file it stats that the database has been opened read only. I must save a copy to make it not read only.

I do not believe this has anything to do with permissions, or file attributes. This is only on Vista, XP appears to work ok. The original accdb file is not read only when i open it.

What is visual studio doing to the accdb file to make it read only? and how can i fix it.


Are you installing into the Program Files heierarchy? If so that's read only for users and would cause the Access database to be read only. You should be installed any Access database file to the users Application Data folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号