The information in this article applies to:
SYMPTOMSWhen trying to pass dbAttachedTable or dbAttachedODBC as arguments to the CDaoTableDef::Create() function or the CDaoTableDef::SetAttributes() function, you will receive this DAO error:
CAUSEThe Visual C++ documentation is incorrect. The values dbAttachedTable and dbAttachedODBC cannot be passed as arguments. These attributes are read- only attributes that are set internally by DAO based on the information provided in the connect string of the table. RESOLUTIONDo not try to set these attributes. DAO will set the attributes based on what is contained in the connect string for the table. For example, look at this code:
DAO will set the dbAttachedTable attribute flag for that table. A call to
CDaoTableDef::GetAttributes() will show the flag has been set.
STATUSThis behavior is by design. Additional query words:
Keywords : kbprg kbDAO kbDatabase kbMFC kbVC |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |