PRB: Error 3219 When Updating Record Set Created w/ DistinctLast reviewed: June 21, 1995Article ID: Q104459 |
The information in this article applies to:
- Microsoft Visual Basic programming system for Windows, version 3.0
SYMPTOMSTrying to perform an update on a result set created with the Distinct predicate results in error 3219 "Can't perform operation, it is illegal."
CAUSEAn object variable or a data control result set created with the Distinct predicate is not updatable according to Help. The following statement is in the Distinct keyword Help topic:
The output of a query that uses Distinct is not updatable and doesn't reflect subsequent changes made by other users. Therefore, when you use the Distinct predicate in a query, you are prevented from trying to update your records. WORKAROUNDThe only workaround at this time is to not use the DISTINCT predicate to build the results set. Note that you may have to handle the duplicates by some other coding means.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |