BUG: DAO dbFailOnError causes RecordsAffected to return 0 (195226)
The information in this article applies to:
- Microsoft Access 97
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q195226 SYMPTOMS
When you run an action query by using Data Access Objects (DAO) and the
Microsoft Jet database engine against an ODBC table, if you specify the
dbFailOnError argument, the RecordsAffected property always returns 0,
regardless of the number of records affected by the statement.
CAUSE
This is a confirmed problem in Microsoft Jet database engine versions 3.5
and 3.51.
RESOLUTION
To resolve this problem, do one of the following:
- Remove the dbFailOnError flag.
-or-
- Use ODBCDirect or another data access method, such as Remote Data
Objects (RDO) or ActiveX Data Objects (ADO).
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbpending KB195226 |
---|
|