Using ADO in VB6 to compact an Access97 database which has a database password set:
jro.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & fName & "; Password=xxx", _
" Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & tmpFileName & "; Jet OLEDB:Engine Type=4"
Results with error (3028):
"The workgroup information file is missing or opened exclusively by another user"
The only user in the db is Admin and there is no .mdw file. The code works if the database password is cleared.
Thanks in advance
jro.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & fName & "; Password=xxx", _
" Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & tmpFileName & "; Jet OLEDB:Engine Type=4"
Results with error (3028):
"The workgroup information file is missing or opened exclusively by another user"
The only user in the db is Admin and there is no .mdw file. The code works if the database password is cleared.
Thanks in advance