DBAchick
Programmer
- Apr 27, 2000
- 61
I have linked an SQL table through ODBC into my Access 97 database. I created an update query: UPDATE Users LEFT JOIN dbo_SAUSERDATA ON Users.UserID = dbo_SAUSERDATA.UserID SET dbo_SAUSERDATA.UserID = [dbo_sauserdata]![userid]*-1 WHERE (((Users.UserID) Is Null)); Basically, if the UserID does not appear in local table USERS, then make the UserID in the linked table dbo_SAUSERDATA a negative number.<br><br>Whenever I execute this query, I get an error 'Must be an updateable query.' I can change the query to a select and get positive results. I can go into the table via Access and change the UserIDs to negatives. I cannot however, delete or update the table using this query. (It gives me the same error if I change it to a DELETE query).<br><br>I have checked the permissions on the SQL table and gave permissions to all groups and users for SELECT, UPDATE, DELETE, DRI, EXECUTE, INSERT, the works.<br><br>What am I doing wrong??<br><br>