Hi all,
I set a password for my access database, and changed
database_connection.asp like this:
strDbPathAndName="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\domain\...\database.mdb; Jet OLEDB:Database Password=123456789;"
Everything work fine.
But when I tried to compact & repair database, I got the message:
Microsoft VBScript runtime error '800a0034'
Bad file name or number
/forum/admin_compact_access_db.asp, line 107
Line 107 in admin_compact_access_db.asp is: objFSO.CopyFile strDbPathAndName, Replace(strDbPathAndName, ".mdb", "-backup.mdb", 1, -1, 1)
Does anyone have any idea ? Any help would be appreciated.