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 > DB2, Access, links, ODBC, no DSN, any thoughts?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-05, 14:19
pinback pinback is offline
Registered User
 
Join Date: Jan 2005
Posts: 4
DB2, Access, links, ODBC, no DSN, any thoughts?

Hello,

I am more of an Access/VB/SQL Server user, so please let me know if I need to provide anymore info:

I am attempting to link a DB2 table into an Access database. I can do it using a DSN, but I cannot get it to work without. There may be 1000 users across the country using the Access database, so I really don't want to go through the trouble of establishing a DSN on so many desktops.

When I attempt to run this code:

Set tbl1 = CurrentDb.CreateTableDef("UDBLA003_SOR_LOGIN")
tbl1.SourceTableName = "UDBLA003.SOR_LOGIN"
tbl1.Connect = "ODBC;driver={IBM DB2 ODBC
DRIVER};Database=SOR;hostname=axsc2lpar06;port=500 03;
Protocol=TCPIP;uid=******;pwd=******"
CurrentDb.TableDefs.Append tbl1

I get Reserved Error (-7778); There is no message for this error.

Does this mean I am actually connecting? Is there something else I should add? Am I way off?

Thanks in advance!

Pinback
Reply With Quote
  #2 (permalink)  
Old 02-01-05, 15:10
pinback pinback is offline
Registered User
 
Join Date: Jan 2005
Posts: 4
I should also mention I am using Access97.

Thanks!
Reply With Quote
  #3 (permalink)  
Old 02-02-05, 18:03
pinback pinback is offline
Registered User
 
Join Date: Jan 2005
Posts: 4
Maybe there is a good place I can go to find this info? Any ideas?
Reply With Quote
  #4 (permalink)  
Old 02-03-05, 03:51
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
Have you tried to upgrade Access 97 to the highest patch level?
I had this problem too a number of years ago. I remeber that applying a number of patches solved the problem.

Kind regards
Wim
Reply With Quote
  #5 (permalink)  
Old 02-03-05, 18:06
pinback pinback is offline
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks Wim,

Unfortunately, I think I am running the most recent version (SR-2).

Thanks again,

Pinback
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