Im trying to import data from a password protected access database from excel vba.
Im using the lines:
Dim DB1 As Database
Dim RS1 As Recordset
On Error GoTo ErrorHandler
Set DB1 = OpenDatabase("c:\temp\Test.MDB"
Set RS1 = DB1.OpenRecordset("Testtable", dbOpenDynaset)
With RS1
but need to enter a password for the database. Can anyone help me on the syntax - I vcant find in documentation.
Thanks,
David
Im using the lines:
Dim DB1 As Database
Dim RS1 As Recordset
On Error GoTo ErrorHandler
Set DB1 = OpenDatabase("c:\temp\Test.MDB"
Set RS1 = DB1.OpenRecordset("Testtable", dbOpenDynaset)
With RS1
but need to enter a password for the database. Can anyone help me on the syntax - I vcant find in documentation.
Thanks,
David