PRB: DAO SetParamValue Limited to 255 Characters (168447)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q168447 SYMPTOMS
The execution of a query following a call to CDaoQueryDef::SetParamValue()
results in an error similar to the following:
DAO Call Failed.
m_pDAOQueryDef->Execute(COleVariant((long)nOptions))
In file daocore.cpp on line 2880
scode = 800A0BC9
Error Code = 3017
Source = DAO.QueryDef
Description = The size of a field is too long.
CAUSE
Parameter values are limited to 255 characters.
RESOLUTION
Do not call SetParamValue with a value that contains more than 255
characters. If you need to update or insert a record that does contain
long data, use a recordset rather than a querydef.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbcode kbDatabase kberrmsg kbprb KB168447 |
---|
|