ACC97: Error Running Update Query in Converted DatabaseID: Q163054
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you run an update query in a database which has been converted to
Microsoft Access 97, you may receive the following error message:
Operation must use an updatable query.
The update query is based on a select query. In Microsoft Access 7.0 or earlier, a select query returns only unique records by default; the SQL statement that defines the query contains the predicate DISTINCTROW. However, a select query in Microsoft Access 97 does not contain DISTINCTROW by default, and all records are returned, even if an entire record is a duplicate of another record in the query results.
Open the update query in SQL view and remove the word "DISTINCTROW" from the SQL statement. Then run the update query again.
Query: qryOrderInfo
----------------------------------------------------
Type: Select Query
Join: Customers.[CustomerID] <-> Orders.[CustomerID]
Join: Orders.[OrderID] <-> [Order Details].[OrderID]
Field: ContactName
Table: Customers
Field: EmployeeID
Table: Orders
Criteria: 2
Field: Quantity
Table: Order Details
Query: qryUpdateOrder
----------------------
Type: Update Query
Field: ContactName
Table: qryOrderInfo
Update To: "XXX"
Field: Quantity
Table: qryOrderInfo
Update To: 33
Operation must use an updatable query.
For more information about the DISTINCTROW predicate, search the Help Index for "UniqueRecords property," or ask the Microsoft Access 97 Office Assistant.
Additional query words: conversion action 3073 select delete Distinct row append
Keywords : kbusage QryUpdat
Version : 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 16, 1999