JaedenRuiner
Registered User.
- Local time
- Today, 00:31
- Joined
- Jun 22, 2005
- Messages
- 154
I'm having an issue with a foxpro dbase III database, that I'm trying to connect to at runtime. My Connect string is simply:
(ConnectStr)
"ODBC;DSN=Visual FoxPro Database;DATABASE=D:\DBFiles"
The file name is table001.dbf and the subsequent table name within the dbf file is table001.
I then do:
upon appending the tdflink I get the Visual FoxPro DSN dialog that asks for a path to the table. I though I had already set that via the DATABASE= parameter of the connect string. I need to do this all real time, with no user input, and it uses a foxpro data source driver. How do I get this to work? I only want to load a table reference into the access mdb so that I can perform SQL commands upon that table, however the table is found in an external FoxPro dbIII dbf file.
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
(ConnectStr)
"ODBC;DSN=Visual FoxPro Database;DATABASE=D:\DBFiles"
The file name is table001.dbf and the subsequent table name within the dbf file is table001.
I then do:
Code:
dim dbTmp as Database
dim tdfLink as TableDef
Set dbTmp = CurrentDB
set tdfLink = dbTmp.CreateTableDef("tbl_DB")
tdfLink.Connect = ConnectStr
tdfLink.SourceTableName = "table001"
dbTmp.TableDefs.Append(tdfLink)
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner