ajlheureux
January 27th, 2006, 01:40 PM
When I execute the following code:
DBAdapter_Global.DeleteCommand = New OdbcCommand("DELETE FROM [Users] WHERE UserInfo0 = '" & current_userid & "'", DBHandle)
Try
DBAdapter_Global.Update(DBDataSet_Users, "Users")
Catch
MsgBox(Err.Number & "" & Err.Description & "" & Err.LastDllError, MsgBoxStyle.Critical, "MEK Administrator")
DBDataSet_Users.RejectChanges()
Return False
End Try
I am getting the error: "Operation must use an updateable query".
I have two users on my computer, one Administrator and one User account.
The Administrator account can do this command with no issues.
The User account is getting the "Operation must use an updateable query" however is actually modifies the database.
I have checked the Security permissions on my .mdb file as well as the folder which contains the .mdb file and they are the same. Actually I have given Full Control to both users. If I make the User account a member of the Administrators group he no longer has the error but I can't leave it this way.
Is there any permissions besides the .mdb file and the folder which contains the .mdb file that would cause this error. Any thoughts would be greatly appreciated.
I have resolved the problem. In the background of the code it was writing to another database which did not have Write Access. Doh!!!
Amy
DBAdapter_Global.DeleteCommand = New OdbcCommand("DELETE FROM [Users] WHERE UserInfo0 = '" & current_userid & "'", DBHandle)
Try
DBAdapter_Global.Update(DBDataSet_Users, "Users")
Catch
MsgBox(Err.Number & "" & Err.Description & "" & Err.LastDllError, MsgBoxStyle.Critical, "MEK Administrator")
DBDataSet_Users.RejectChanges()
Return False
End Try
I am getting the error: "Operation must use an updateable query".
I have two users on my computer, one Administrator and one User account.
The Administrator account can do this command with no issues.
The User account is getting the "Operation must use an updateable query" however is actually modifies the database.
I have checked the Security permissions on my .mdb file as well as the folder which contains the .mdb file and they are the same. Actually I have given Full Control to both users. If I make the User account a member of the Administrators group he no longer has the error but I can't leave it this way.
Is there any permissions besides the .mdb file and the folder which contains the .mdb file that would cause this error. Any thoughts would be greatly appreciated.
I have resolved the problem. In the background of the code it was writing to another database which did not have Write Access. Doh!!!
Amy