Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error using rdoConnection

Status
Not open for further replies.

Goha

IS-IT--Management
May 9, 2002
91
0
0
US
I get the following error message when I run the (on last line)

sql_string = "select * from report_def where Description = '" & Trim(strNodeText) & "' and param_name = '" & RDEF(I).PARAM_NAME & "'"

Set rdofind = cn.OpenResultset(sql_string, rdOpenForwardOnly, rdConcurReadOnly)

-------------------------------------------------

Run-time error '40002': 37000:[Microsoft][ODBC SQL Server Driver][SQL Server] Statement(s)could not be prepared

what is the problem it is working in other places of the program.

 
What does the contents of sql_string look like at run time? Does this query run in query analyzer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top