- Sep 29, 2000
- 70,150
- 5
- 0
This is annoying me. I have this query and it's good in SQL:
UPDATE [T 99] SET [Part Number] =
(SELECT x.[new part] FROM xref x
WHERE x.[old part] = [T 99].[Part Number])
As you can see, it updates a field in T 22 based on a cross referenced value in xref table. xref has only "old part" and "new part"
In access, however, I get this error:
"Operation must use an updateable query."
Google is no help. This is a common problem, but no solutions on google fix me. I am an admin on this machine and the database is on my local box. I have tried this:
UPDATE [T 99] SET [Part Number] =
DLookup("[new part]", "xref", "[old part] = [T 99].[Part Number]")
and when I hit run nothing happens. There is no error, no indication as to how many records to update, nothing at all. It's like Access cannot update an entire table based on matching records in another table. My last resort here is to import the entire thing into SQL, run the proper update query, then export back out to Access, but that is a really silly option.
I am eternally indebted to whomever helps!
UPDATE [T 99] SET [Part Number] =
(SELECT x.[new part] FROM xref x
WHERE x.[old part] = [T 99].[Part Number])
As you can see, it updates a field in T 22 based on a cross referenced value in xref table. xref has only "old part" and "new part"
In access, however, I get this error:
"Operation must use an updateable query."
Google is no help. This is a common problem, but no solutions on google fix me. I am an admin on this machine and the database is on my local box. I have tried this:
UPDATE [T 99] SET [Part Number] =
DLookup("[new part]", "xref", "[old part] = [T 99].[Part Number]")
and when I hit run nothing happens. There is no error, no indication as to how many records to update, nothing at all. It's like Access cannot update an entire table based on matching records in another table. My last resort here is to import the entire thing into SQL, run the proper update query, then export back out to Access, but that is a really silly option.
I am eternally indebted to whomever helps!
