I would think you could create a connect string that fires on the login or main menu page. But, there may be an issue with timeout on Oracle if a user sits idle for x minutes. But, use caution when hard-coding passwords! It is not a good idea and I always try to avoid it.
Set tdfLinked = _
dbsCurrent.CreateTableDef("AuthorsTable"
tdfLinked.Connect = _
"ODBC;DATABASE=pubs;UID=sa;PWD=;DSN=Publishers"
Steve Medvid
"IT Consultant & Web Master"
Just curious...if there is not a security issue...why don't you set it up through the registry setting for the oracle's 'System DSN'? Regedit, HKEY_LOCAL_MACHINE, SOFTWARE, ODBC, ODBC.INI add the string value 'Password' (case sensitive) and edit it for the 'password'. If security is an issue I apologize or if the application is used by many others it may not be practical.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.