Hallo Everyone,
I have an MS-Access frontend that interacts with an Oracle database using mostly passthrough queries that are written and overwritten programmatically. These queries have the ODBC information filled out but no password information is included.
This is extremely comfortable (both for the developer and for the user) because once one query has been called up and MS-Access has (automatically) requested the user-id and password no futher action is required and all other queries use this information.
However, I have programmed some SQL calls (to the Oracle database) in VBA using ADO ...
sConn = "Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=" & _
"(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)" & _
"(Host=mydatabase.com)(Port=15297))) " & _
"(CONNECT_DATA = (SID = MYSID)(SERVER = DEDICATED)));" & _
"User ID=johndoe;Password=secretpassword;"
... with the password being hard-coded in.
This is of course wrong and so I will be replacing the password with a variable.
What would be absolutely wonderful is if I could pick up the password variable that is generated/entered for the existing queries rather than have my own, second variable that the user has to enter.
Can anyone help me with this? Am I able to capture the password that is requested/entered for standard queries?
Many thanks for any tips on this topic.
Regards,
Alan Searle