I am trying to open up a dynaset recordset in VBA code using a db different from the one with the code. The external db is password protected. How do I include a parameter in my code to permit opening the external db?
Here is the line of code to open the external recordset:
strLocation = conPWLocation
strTable = “tblPasswords”
Set dbs = OpenDatabase(strLocation)
Set rstPasswords = dbs.OpenRecordset(strTable, dbOpenDynaset)
Thanks.