
Why??? Strange error in Access 2000
ACCESS 2000 and 2002 versions both default to the ADO library, not the DAO
library. But your code is wanting to use the DAO library. Open the Visual
Basic Editor, click Tools | References, and select DAO library. If you don't
plan to use the ADO library , deselect it.
Then disambiguate your code by prefixing Database and Recordset with DAO.,
as so:
Dim db As DAO.Database, rs As DAO.Recordset
--
Ken Snell
<MS ACCESS MVP>
Quote:
> I've done some vba coding in an access db, but on one of
> the machines it's beeing used I get an error.
> The error message is:
> "method 'Currentdb' of '_Application' Failed" on the line
> under it says "an automation error"
> I figured there was something wrong with the software on
> the machine, not the db.
> I tried to open an empty db and opened a code module and
> typed "?currentdb.version" in the Immidiate Window. I got
> the same error.
> I've re-installed office and run a chkdsk on the machine
> without any luck.
> This is a little bit frustrating so any help or tips
> would be greatly appreciated.
> Thanks!
> Keir Olsen