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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing parameter to rdo connection

Status
Not open for further replies.

jozino01

Technical User
Apr 25, 2003
257
CA
hi,

i am using rdo odbc text driver for vb6. i can open and read the file:

Set en = rdoEngine.rdoEnvironments(0)
With cn
.CursorDriver = rdUseOdbc
.Connect = "DRIVER={Microsoft Text Driver (*.txt;" & _
" *.csv)};DBQ=c:\mcp;"
.EstablishConnection rdDriverNoPrompt, False
End With
Set rs = cn.OpenResultset("select * from [addresses#txt]")
While Not rs.EOF
Combo3.AddItem (rs!address1)
rs.MoveNext
Wend

but the following command:

Set rs = cn.OpenResultset("select * from [addresses#txt] where address1 ='" & Combo3.Text & "'")


is giving me an error message - Run time error 40002. selected collating sequence not supported by the operating system.

any idea what's wrong (syntax?)/how to fix it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top