• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Access connect to database Informix

Status
Not open for further replies.

Kleverson

New Member
Hi,

I have a report that I export from Access to Excel. Before I do that I need to generate a query in Access that have a connection with an Informix database. When I ask to run the query a pop up ask for login/password.
How can I automate this?
Or how can I create a string connection so when I run the query the connection with the server is already stabilish?

Thank you!

Kleverson
 
Can you give the forum the answers you received from the Access forums you have posted this question on.
 
Hi,

I have a report that I export from Access to Excel. Before I do that I need to generate a query in Access that have a connection with an Informix database. When I ask to run the query a pop up ask for login/password.
How can I automate this?
Or how can I create a string connection so when I run the query the connection with the server is already stabilish?

Thank you!

Kleverson
Have you been able to identify your connection string; if so, it will give you some clues as to how to automate it, if my memory serves me correctly.

It should look something like this

Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\mydb.mdb;Jet OLEDB:DatabasePassword=password;
 
Hi David,

I tried this:

Private Sub testConection()
Dim cn As New ADODB.Connection

DoCmd.SetWarnings False


Set cn = New ADODB.Connection


cn.ConnectionString = "DRIVER={OpenLink Generic 32 Bit Driver v4.0};DNS=CMS;_ServerType=Informix 2000;Host=10.187.0.24;Port=5000;Database=;FetchBufferSize=30;NoLoginBox=No;Protocol=TCP/IP;ReadOnly=No;ServerOptions=;DeferLongFetch=Yes;TABLE=root_hsplit;Uid=***user***;PASSWORD=***password***"
cn.Open

DoCmd.OpenQuery "01 - Criar base skill", acViewNormal, acRead

cn.Close

End Sub

The Access file open without password, the password is asked when I call the query.

Thanks for the reply!
 
Status
Not open for further replies.
Back
Top