TableDef connection - Appending & Removing

smed

Registered User.
Local time
Today, 04:32
Joined
Apr 18, 2002
Messages
50
I am using the following code to append a password protected paradox database

Dim dbs As Database
Set dbs = CurrentDb

Dim strTableName As String
strTableName = "Data-PL"

Dim tdf As TableDef
Set tdf = dbs.CreateTableDef(strTableName)
tdf.Connect = "Paradox 3.X;PWD=xx;HDR=NO;IMEX=2;DATABASE=C:\Data"
tdf.SourceTableName = strTableName

dbs.TableDefs.Append tdf
rst.Close
dbs.close


If the access database is closed and then reponed, any attempt to manually link to the table is propmted with a password prompt.

However if the database is not closed, a manual link to the paradox table is performed without promting for password.

I think that access is holding onto the tabledef connection string and reusing it for further connections to the same paradox database.

If this is the case, Does anyone know how to remove/clear the tabledef connection string ?

Smed
 

Users who are viewing this thread

Back
Top Bottom