PRB: Parameterized RDO query results in Error 40002 (183085)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 4.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 Q183085 SYMPTOMS Some parameterized RDO queries result in Error 40002,
"Invalid Parameter Number," if the SET NOCOUNT ON/OFF option is used within the
SQL query text. RESOLUTION This problem can be resolved by not using a parameter query
and instead hard coding the parameters in the query string.
To do
this, in the code below, comment out the lines of code beneath the PROBLEM
section. Then uncomment the line of code beneath the WORKAROUND section.
STATUS Microsoft is researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbprb KB183085 |
---|
|