G
Guest
Hi,
I'm using Access 2003 and trying to create a linked table from an AS400
database.
Here's what I have that's not working.
===========
Dim db As Database
Dim tdf As TableDef
dim str as string
str = "Provider=MSDASQL;DSN=MYDSN;USER=USERNM;DATABASE=DB_QRY;PWD=MYPASSWD"
Set tdf = db.CreateTableDef("TEST")
tdf.Connect = str
tdf.SourceTableName = "TBL1"
db.TableDefs.Append tdf
===========
When I get to the last line, I get the error "could not find installable ISAM"
Now, two things
1) if i use the same connectiong string (str) and open up a recordset object
to TBL1, I can successfully get to that table, so that tells me the
connection string is okay.
2) If I put in the wrong password in the connection string, tdf.connect
doesn't give any error.
Okay, any ideas how I can fix this?
Thanks!
-Mark
I'm using Access 2003 and trying to create a linked table from an AS400
database.
Here's what I have that's not working.
===========
Dim db As Database
Dim tdf As TableDef
dim str as string
str = "Provider=MSDASQL;DSN=MYDSN;USER=USERNM;DATABASE=DB_QRY;PWD=MYPASSWD"
Set tdf = db.CreateTableDef("TEST")
tdf.Connect = str
tdf.SourceTableName = "TBL1"
db.TableDefs.Append tdf
===========
When I get to the last line, I get the error "could not find installable ISAM"
Now, two things
1) if i use the same connectiong string (str) and open up a recordset object
to TBL1, I can successfully get to that table, so that tells me the
connection string is okay.
2) If I put in the wrong password in the connection string, tdf.connect
doesn't give any error.
Okay, any ideas how I can fix this?
Thanks!
-Mark