Solved

Access 2007 Error

Posted on 2012-03-18
5
196 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

713 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