Database Connection with Informix using VBA

G

Guest

Hi,
Nowadays I'm able to create and execute some queries in a Oracle Database.
To connnect I use the follwing code (username and passwd is gave by user)
'Open DB Connections
Set primeSession = CreateObject("ADODB.Connection")
Set objADORecordSet = CreateObject("ADODB.Recordset")

primeSession.Open "Provider='MSDAORA';" & _
"Data Source='" & database & "';" & _
"User ID='" & username & "';" & _
"Password='" & password & "';"

But I was going to retrieve some info from this DB and then connect to a
Informix Database. But I could not connect to an informix Database.
Have any of you done something similar?

But I'd like to ask the user username and passwd before connecting (not
using an external odbc source)

Thanks for any help, direction or example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top