BUG: Access 2000 Object Model breaks binary compatibility (246237)
The information in this article applies to:
- Microsoft Access 2000
- Microsoft Access 2002
- Microsoft Office Access 2003
This article was previously published under Q246237 SYMPTOMS
Automation clients written for Microsoft Access 97 that use either early binding (VB, ATL with #import) or dispid binding (MFC) might unexpectedly fail when trying to automate Microsoft Access 2000,Microsoft Access 2002, or Microsoft Office Access 2003.
Among the possible errors you might receive as a result of this problem are:
0x80020003 : 438 - Object doesn't support this property or method.
0x80020004 : 448 - Named argument or parameter not found.
0x80020005 : 13 - Type mismatch.
Many functions might also produce custom errors from Access or might not return an error at all; that is, the call appears to have succeeded but the correct method was not called.
CAUSE
During development of Access 2000, the Access object model was accidentally modified in a way that breaks both binary (v-table) and dispid compatibility with Access 97. Any client application that uses
early or dispid binding to Access 97 might fail to work properly when run
against Access 2000,Access 2002, and Access 2003.
The following non-compatible changes were made to the Access Object Model:
RESOLUTION
Automation clients that want to Automate Access 97, Access 2000,Access 2002, and Access 2003 "must" use late binding (that is, IDispatch::GetIdsOfNames and IDispatch::Invoke).
STATUS
Microsoft has confirmed this to be a bug in Access 2000.
However, due to the number of clients currently using early binding to Access
2000, this problem cannot be fixed without risking further incompatibilities. Access 2002 remains compatible with Access 2000, but not Access 97.
Microsoft recommends that out-of-process clients use late binding to automate Access.
REFERENCES
For more information on Automation binding methods, please see the following article in the Microsoft Knowledge Base:
245115 INFO: Using Early Binding and Late Binding in Automation
Modification Type: | Major | Last Reviewed: | 12/13/2004 |
---|
Keywords: | kbAutomation kbbug kbnofix KB246237 |
---|
|