Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access 2007 Error

Posted on 2012-03-18
5
195 Views
Last Modified: 2012-08-14
Hi,

When I try to run a macro SETPROPERTY to set Visible = 0 on a control  I get an error as follows:

"A problem occurred while Microsoft Office Access was communicating with the OLE server or ActiveX Control."  It then goes on to say I need to restart the OLE server outside of Microsoft Access.

This macro ran fine previously.  Now it chooses to fail for no reason.  The macro runs and it only fails with this error when it attempts to run the SETPROPERTY line.  Other commands prior to the SETPROPERTY run fine.  Tried rebooting but no luck.

Help is appreciated.
Charlie
0
Comment
Question by:cwbarrett
  • 2
  • 2
5 Comments
 
LVL 21
ID: 37736378
First, do you nave  at least  Office 2007 SP2 update installed. If not, be sure to do that. It will resolve lots of issues. This may help: Where is the About dialog for Office 2007 applications?



Also try compacting your database.
0
 

Author Comment

by:cwbarrett
ID: 37736394
I reverted to a backup copy from yesterday.  It works.  I've noticed that Access 2007 is quirky.  Just when you think it's fine something throws it for a loop.

Just to see if it helped I compacted the bad copy and it didn't help.  I thought maybe the OLE/ActiveX server was a service but couldn't find it.

It looks like the version of Access is SP3.

Thank you.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37738418
<I've noticed that Access 2007 is quirky.>
...Unfortunately , you could say that about any application...

Perhaps moving away from macros and instead using VBA would go a long way in resolving this perceived "quirkiness"?

;-)

JeffCoachman
0
 

Author Comment

by:cwbarrett
ID: 37738492
I agree.  Any suggestions for books on beginner VBA?

Charlie
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 37738797
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question