Why??? Strange error in Access 2000 
Author Message
 Why??? Strange error in Access 2000

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



Sat, 20 Aug 2005 21:46:28 GMT  
 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



Sat, 20 Aug 2005 23:50:50 GMT  
 Why??? Strange error in Access 2000
I haven't tried your suggestion, I will tomorrow. Thanks!
But i'm not sure it's going to work because I have
already tried removing the references to ADO, just using
DAO. Another thing, doesn't the "Currentdb"-method
automaticly call DAO?

But thanks for your help so far!

Kind regards

Keir Olsen

Quote:
>-----Original Message-----
>ACCESS 2000 and 2002 versions both default to the ADO

library, not the DAO
Quote:
>library. But your code is wanting to use the DAO

library. Open the Visual
Quote:
>Basic Editor, click Tools | References, and select DAO

library. If you don't
Quote:
>plan to use the ADO library , deselect it.

>Then disambiguate your code by prefixing Database and

Recordset with DAO.,
Quote:
>as so:

>Dim db As DAO.Database, rs As DAO.Recordset
>--
>       Ken Snell
><MS ACCESS MVP>



>> 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

>.



Sun, 21 Aug 2005 10:12:00 GMT  
 Why??? Strange error in Access 2000
I did not work.

I'm thinking the problem lies either in the dao360.dll or
the Jet DbEngine

Probably I'll have to format the disk and reinstall win
and office. The problem is that I just hate it when I
don't figure out what's wrong...

Kind Regards

Keir

Quote:
>-----Original Message-----
>ACCESS 2000 and 2002 versions both default to the ADO

library, not the DAO
Quote:
>library. But your code is wanting to use the DAO

library. Open the Visual
Quote:
>Basic Editor, click Tools | References, and select DAO

library. If you don't
Quote:
>plan to use the ADO library , deselect it.

>Then disambiguate your code by prefixing Database and

Recordset with DAO.,
Quote:
>as so:

>Dim db As DAO.Database, rs As DAO.Recordset
>--
>       Ken Snell
><MS ACCESS MVP>



>> 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

>.



Sun, 21 Aug 2005 12:47:46 GMT  
 Why??? Strange error in Access 2000
CurrentDB doesn't call DAO, but it uses the DAO library.

I'm not sure if my suggestion will work in this instance, but it would be
the first thing to try. Good luck.
--
       Ken Snell
<MS ACCESS MVP>


Quote:
> I haven't tried your suggestion, I will tomorrow. Thanks!
> But i'm not sure it's going to work because I have
> already tried removing the references to ADO, just using
> DAO. Another thing, doesn't the "Currentdb"-method
> automaticly call DAO?

> But thanks for your help so far!

> Kind regards

> Keir Olsen

> >-----Original Message-----
> >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>



> >> 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

> >.



Sun, 21 Aug 2005 12:46:25 GMT  
 Why??? Strange error in Access 2000
Sorry to hear this...good luck!

--
       Ken Snell
<MS ACCESS MVP>


Quote:
> I did not work.

> I'm thinking the problem lies either in the dao360.dll or
> the Jet DbEngine

> Probably I'll have to format the disk and reinstall win
> and office. The problem is that I just hate it when I
> don't figure out what's wrong...

> Kind Regards

> Keir
> >-----Original Message-----
> >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>



> >> 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

> >.



Sun, 21 Aug 2005 13:31:33 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Strange Access 2000 error

2. Strange Error on Win 2000 Machine.

3. Strange Error on Win 2000 Machine.

4. Strange problem VB6 with Access 2000

5. Access 2000 append query run from Outlook 2000 fails - no error message - REPOST

6. Why does Access 2000 silently fail?

7. Why is this code locking the table in access 2000

8. Access 2000 with VB6.0 - Stopped working...why?

9. Access 2000 with VB6.0 - Stopped working...why?

10. Access 2000 Error - "Application Defined Error"

11. Access 2000 Database Error - error opening file

12. Conversion error from Access 2000 to Access 97

 

 
Powered by phpBB® Forum Software