M
Mikey
This D2010 project works fine on my XP box, but fails on the 'dbE.Opendatabase' line
on Win7 with EOleSysError with message 'Error loading type library/DLL.', but doesn't
identify what it can't load.
The database is copied from the XP box, and is password protected. Double-clicking it
in the Download folder opens it in fine in Access. The copy in the ProgramData\PWB
folder fails with 'Not a valid password'.
Thanks, Mike
DBPath equates to C:\ProgramData\PWB\clock.mdb. The database is Access2000.
{code}
DBPath := WritePath + DBName;
dbE := CreateOleObject('DAO.DBEngine.36');
//open
try
dbDAO := dbE.OpenDatabase(DBPath, True, False, ';pwd=' + edtUserPW.Text);
except
on E:Exception do
begin
MessageDlg('Error opening database.'#13#10 + E.Message, mtInformation, [mbOK],0);
Application.Terminate;
exit;
end;
{code}
on Win7 with EOleSysError with message 'Error loading type library/DLL.', but doesn't
identify what it can't load.
The database is copied from the XP box, and is password protected. Double-clicking it
in the Download folder opens it in fine in Access. The copy in the ProgramData\PWB
folder fails with 'Not a valid password'.
Thanks, Mike
DBPath equates to C:\ProgramData\PWB\clock.mdb. The database is Access2000.
{code}
DBPath := WritePath + DBName;
dbE := CreateOleObject('DAO.DBEngine.36');
//open
try
dbDAO := dbE.OpenDatabase(DBPath, True, False, ';pwd=' + edtUserPW.Text);
except
on E:Exception do
begin
MessageDlg('Error opening database.'#13#10 + E.Message, mtInformation, [mbOK],0);
Application.Terminate;
exit;
end;
{code}