If you are using an Excel 2007 and Access 2007 combo, you should use the following connection string
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & strDBPath & ";Jet OLEDB:Database Password=PWD;"
Where strDBPath is the variable that contains the path, and "PWD" is your password




Reply With Quote

Bookmarks