ACC2: "Type Conversion Failure" with Update or Append Query (125259)
The information in this article applies to:
This article was previously published under Q125259 SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you run an append or update query, you receive a "type conversion
failure" error message when a query parameter is not explicitly declared.
For example, an update query fails if its Update To parameter is a
reference to a form control.
CAUSE
The query parameter is implicitly declared and, as a result, is
automatically treated as text. The conversion fails, resulting in the
error message. Note that the error message occurs only if you are using the
Microsoft Jet database engine version 2.5, which is installed when you
install the Microsoft Access version 2.0 Service Pack.
RESOLUTION
To resolve this problem, either wrap the parameter with a conversion
function such as CVDate(), CLng(), or CCur(), or explicitly declare the
parameter's data type in the Parameters dialog box. (To use the Parameters
dialog box, choose Parameters from the Query menu.)
If you want to automate the process of explicitly defining parameter data
types, you can install a utility application called Params.exe. For
information on how to obtain Params.exe, please see the following article
in the Microsoft Knowledge Base:
149357 ACC2: Parameter Typing Utility Available in Download Center
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version
2.0. This problem no longer occurs in Microsoft Access version 7.0.
REFERENCES
For more information about parameters, search for "parameter query,"
and then "Creating a Parameter Query" using the Microsoft Access Help
menu.
For information about the Microsoft Access version 2.0 Service Pack,
please see the following article in the Microsoft Knowledge Base:
122927 WX1124: Microsoft Access Version 2.0 Service Pack
Modification Type: | Major | Last Reviewed: | 11/6/2000 |
---|
Keywords: | kbbug kbusage KB125259 |
---|
|