By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,708 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,708 IT Pros & Developers. It's quick & easy.

use dao to create odbc link table and saving the password

P: n/a
in DAO, I'm using the dbAttachSavePwd flag in the CreateTableDef

and it saves a userid / password, but not the one I specified in the
connection string

I dropped the table first with
db.Execute "DROP TABLE tblX;"

then I recreate the link to the sql server table with
strConnect =
"ODBC;DATABASE=baandb;UID=abc;PWD=123;DSN=baan SQL"
strSource = "tblX"
Set tdf = db.CreateTableDef("tblX",
dbAttachSavePWD, strSource, strConnect)
With db.TableDefs
.Append tdf
End With
displaying the value of tdf.connect before the 'append', shows UID of

displaying the value of tdf.connect after the 'append', shows UID
of 'xyz', which is also a valid UID and the UID of the original link,
but I'm trying to change in to 'abc'

what am I missing ?

Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.