473,513 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBA Broken - Unable to Compile

Hi all,

I am unable to run any VBA in access XP. I get the compile error of
'Error In Loading DLL'. Behaviour of the wizards is also patchy. I
cannot get past the first screen in most (i.e. the buttons in the
wizard screens are dead). I presume the wizards run VBA underneath.

I have installed the latest service pack, both windows xp and office
xp. It was a clean XP install.

I have tried repairing and reinstalling Access.

When I installed I selected to install everything, and run nothing
from the CD. Curiously, whenever I start Access, I get the
'Installing: Microsoft Access Components' dialog.

I am also unable to run any VBA in Excel XP, nor record any macros.

I have also tried reinstalling the latest version of MDAC (following
suggestions in past posts).

I am pulling my hair out. Has anyone had similar problems?

Would be very grateful for any ideas!

Many thanks,

Chris.
Nov 12 '05 #1
8 3382
Try to find out what references you have linked (in module window). Having
the wrong ones listed often leads to this sort of trouble.

There is lots of info on this on the net.
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004
Nov 12 '05 #2
References are all fine. I know how to fix that type of problem.

Part of my problem is that I cannot determine which DLL is causing the problem.

Any ideas?

Chris.
Nov 12 '05 #3
Sorry, I would not know any more.
"Chris Bailiss" <c.*******@btinternet.com> wrote in message
news:82************************@posting.google.com ...
References are all fine. I know how to fix that type of problem.

Part of my problem is that I cannot determine which DLL is causing the problem.
Any ideas?

Chris.

---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004
Nov 12 '05 #4
Hi Chris,

What kind of error message are you getting? Does it halt on a line of code?
Post back with as much detail as you can and someone can probably help you.

HTH
--
-Larry-
--

"WindAndWaves" <ac****@ngaru.com> wrote in message
news:U8*******************@news.xtra.co.nz...
Sorry, I would not know any more.
"Chris Bailiss" <c.*******@btinternet.com> wrote in message
news:82************************@posting.google.com ...
References are all fine. I know how to fix that type of problem.

Part of my problem is that I cannot determine which DLL is causing the problem.

Any ideas?

Chris.

---
Please immediately let us know (by phone or return email) if (a) this

email contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004

Nov 12 '05 #5
c.*******@btinternet.com (Chris Bailiss) wrote in message news:<82************************@posting.google.co m>...
References are all fine. I know how to fix that type of problem.

Part of my problem is that I cannot determine which DLL is causing the problem.

Any ideas?


Sure. You can use the MDAC Component Checker to help identify problems
involving those files:

http://www.microsoft.com/downloads/d...displaylang=en

And you can check for dependencies (what DLLs are not loading or are a
wrong version) by using Microsoft's Dependency Walker:

http://support.microsoft.com/default...b;en-us;256872

'------------------------------
' John Mishefske
'------------------------------
Nov 12 '05 #6
Whn I try to run the procedure I recieve the error:

The expression On Click you enetered as the event property setting
produced the following error:
Error in loading DLL

* The expression may not result in the name of a macro, the name of a
user defined function, or [Event Procedure].
* There may have been an error evaluating the function, event or
macro.

This error occurs whenever I try to run any code (with the 'On Click'
bit changing as appropriate). The error does not halt on a line of
code. I get the impression it is not getting that far. E.g. if I
select the compile option in the Access VBA editor, I get the same
error and again it does not point to any line of code.

Also, the wizards are broken, i.e. the first screen of each wizard
will appear but the buttons do not do anything in them. Presume the
wizards run VBA underneath.

It also affects the other Office applications, e.g. the VBA editor in
Excel is completely disabled, the menu options are all totally
disabled - I cannot view or add any code to a spreadsheet.

Something is very broken with VBA environment.

Just worth noting, I have done a full install, with nothing running
from the CD.

Any ideas?

Chris.

"Larry Daugherty" <La********************@verizon.net> wrote in message news:<hc*******************@nwrddc03.gnilink.net>. ..
Hi Chris,

What kind of error message are you getting? Does it halt on a line of code?
Post back with as much detail as you can and someone can probably help you.

HTH
--
-Larry-

Nov 12 '05 #7
Thanks for that.

MDAC is installed fine.

Used the Dependency Walker:
MSO.DLL seems to be the problem. I have found the file, in:
C:\Program Files\Common Files\Microsoft Shared\Office10
but it doesn't appear to be registered.

Attempts to register or unregister the file using regsvr32 give the error:
"mso.dll was loaded, but the DllResgisterServer entry point was not found.
This file cannot be registered."

Am I registering the file in the wrong way?

Any suggestions?

Thanks again,

Chris

mi****@execpc.com (almish) wrote in message news:<95**************************@posting.google. com>...
c.*******@btinternet.com (Chris Bailiss) wrote in message news:<82************************@posting.google.co m>...
References are all fine. I know how to fix that type of problem.

Part of my problem is that I cannot determine which DLL is causing the problem.

Any ideas?


Sure. You can use the MDAC Component Checker to help identify problems
involving those files:

http://www.microsoft.com/downloads/d...displaylang=en

And you can check for dependencies (what DLLs are not loading or are a
wrong version) by using Microsoft's Dependency Walker:

http://support.microsoft.com/default...b;en-us;256872

'------------------------------
' John Mishefske
'------------------------------

Nov 12 '05 #8
c.*******@btinternet.com (Chris Bailiss) wrote in
news:82*************************@posting.google.co m:
Something is very broken with VBA environment.


Have you run the REPAIR from the Office Setup program?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2408
by: Erik Johnson | last post by:
I am trying to upgrade my Python installation. After downloading sources and building Python 2.3.4, I am unable to use the command history editing feature in the interactive interpreter (where the...
19
2422
by: newbiecpp | last post by:
I am looking for a C++ unit testing program. I googled and found there are quite a few there, such as CppTest, C++Test, and DejaGnu. Can someone give me a recommendation among these programs? I...
1
2446
by: itp | last post by:
Hello, I have looked at several ADO.NET resources and they all say to use the infomessage event handler. I have added the code to my form but when I disconnect the network cable, it does not...
3
7183
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
2
2358
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
64
3398
by: groups | last post by:
C# is an impressive language...but it seems to have one big limitation that, from a C++ background, seems unacceptable. Here's the problem: I have a third-party Document class. (This means I...
4
2440
by: shaileshkumar | last post by:
hi , i m trying to run jsps in tomcat 5.0. I was able run servlets successfully but iam unable to run jsps. i have also coppied tools.jar from jdk and pasted in tomcat directory i have done the...
11
2218
by: Imok20 | last post by:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I am unable to compile C programs. GCC is there, but it can't find a library. I'm currently running 10.5.1. Perhaps there's a...
3
5537
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.