AccessXP Automation Error -2147024769

M

Mike

We have a problem with Access XP Sp2 on Windows XP Sp1

In a blank new mdb database, if we execute the following code from the immediate windo

?application.CurrentProject.Connection.ConnectionStrin

We get the following error message

Run-time error '-2147024769 (8007007F)'
Automation Erro
The specified procedure could not be found

However the following code executes fine

?application.CurrentProject.Nam

In the references, the version of Microsoft ActiveX Data Objects is 2.1. We have tried changing it to be 2.5 but that does not have any effect

Can you help us

Thanks
 
B

Billy Yao [MSFT]

Hi Mike,

Thank you for posting in the community.

From your description, I understand that when you executed the following
code from the immediate window:
-------------------------------------------------------------------------------------
?application.CurrentProject.Connection.ConnectionStrin

------------------------------------------------------------------------------------

you got the Run-time error '-2147024769 (8007007F)'. However, the
following code executes with no Automation Error

-------------------------------------------------

?application.CurrentProject.Nam

--------------------------------------------------

I'm not 100% sure if you are implementing mail merge in VBA code. If
possible, could you please specify how to reproduce this problem and can
you compile your code before execution?

Based on my experience, this problem seems to be caused some ADO
related DLL files are corrupt or not registered properly. I recommend you
download the Componnet Checker (CC) to check your MDAC version and
compare the version number of each MDAC DLL file to a list of the DLL files
that are shipped with each MDAC version to see if there is any mismatch on
the DLLs.

301202 HOW TO: Check for MDAC Version
http://support.microsoft.com/?id=301202

Additionally, it is recommended you download and apply the MDAC 2.7
SP1 Refresh via the following link:

Microsoft Data Access Components (MDAC) 2.7 Service Pack 1 Refresh
http://www.microsoft.com/downloads/details.aspx?FamilyID=9ad000f2-
cae7-493d-b0f3-ae36c570ade8&DisplayLang=en

Before apply this MDAC, please exit all the applications and stop all the
services (can set them Manual startup type) related with the data access
component. After upgrading to MDAC 2.7 SP1 Refresh, a machine reboot is
needed for component update.

If you have already applied MDAC 2.7 SP1 Refresh or later version on your
Windows XP SP1 machine, I suspect that MDAC upgrade is not complete
(with no machine reboot for instance) Please read the following KB to
diagnose Problems and reconfigure MDAC Installations:

307255 INFO: Component Checker: Diagnose Problems and Reconfigure
MDAC
http://support.microsoft.com/?id=307255

Please apply my suggestions above and let me know if this helps resolve
your problem. If the problem persists after apply MDAC 2.7 SP1 refresh, we
need to collect more information as asked in this message and appreciate
your assistance provided more detailed steps to reproduce the problem.

If there is anything I can do to assist you , please feel free to post it in the
group.

Best regards,

Billy Yao
Microsoft Online Support
 
S

shamil

Many thanks! Bolshoe spasibo (on russian)!
Billy, you gave me a piece of good advice. This solve a my problem.

Best regards,

Shamil Kozin
Musa Motors Co.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top