You can try this, I successfully create connetion from
VB to Informix.
Using the following connection codes:
This is use to establish the connection.
Set rdoCon = New rdoConnection
With rdoCon
.Connect = "DSN=odbcname;uid=username;pwd=password"
.LoginTimeout = 14400
.EstablishConnection rdDriverNoPrompt
End With
This is how I use to get/query data from Informix
strSQL = "select * from table where id = '" & txtid.Text & "'"
Set rdoRes = rdoCon.OpenResultset(strSQL)
If rdoRes.EOF Then
MsgBox ("Invalid Login! Please Try Again!")
Else
row_count = rdoRes.RowCount
End If
After the rdoRes executed, you can use the rdoRes(#) to refer to the field.