If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Query AS400 through

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-10, 15:55
newer newer is offline
Registered User
 
Join Date: Sep 2003
Posts: 32
Query AS400 through

I have macro to connect to AS400 and query the data. My code works for all of the users except for a couple of users.
Code:
Public Const strAS400Connection = "DRIVER={Client Access ODBC Driver (32-bit)};" & _
                      "SYSTEM=172.16.xx.xx;" & _
                      "UID=account;PWD=password;"

Sub TopLineMonthly()
On Error GoTo ErrorHandler
            
       Set conn = New ADODB.Connection
       conn.ConnectionString = strAS400Connection
       'set up timeout to no limit
       conn.CommandTimeout = 0      
       conn.Open

'ignore rest code    

End Sub
The problem for this user is: it prompt the AS400 login window. But I have account and password in VBA code. Why? His AS400 set up is the same as other users.

I also want to know where I can download client access odbc driver "32 bit " version 11?

Thanks,

Lisa
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On