473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cannot run any functions from a form

Just upgraded to 2k3, and I've never seen this problem before. I have
a form with a couple of subforms, and I need a little bit of code to
refresh both of them when the user changes records. However, any time
I run any kind of function off an event, I get a message that says

The expression On Current you entered as the event property setting
produced the following error: A problem occurred while Microsoft Office
Access was communicating with the OLE server or ActiveX Control

I changed the code to do nothing but open a msgbox, and even changed it
from a private sub to a public function. I can run the function just
fine from the VB window, but I get the error whenever I try to run it
off an event. I googled around a bit and looked for any missing
references, but I couldn't find any.

Anyone that could help me out I'd be eternally grateful. This problem
has pretty well brought my project to a screeching halt.

Thanks!

Nov 13 '05 #1
2 2280
If it was a References problem, it shouldn't work from the Immediate Window
either. I would suspect something is corrupted. If you create a new database
file, does it work properly? If so, make a backup of your current file then
try a decompile/compile. If that doesn't work, try creating a new, blank
database file and importing the objects form this file.

Here are some links on handling corrupt files.
http://www.allenbrowne.com/ser-47.html
http://www.granite.ab.ca/access/corruptmdbs.htm

--
Wayne Morgan
MS Access MVP
"Maddman" <ma********@yahoo.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Just upgraded to 2k3, and I've never seen this problem before. I have
a form with a couple of subforms, and I need a little bit of code to
refresh both of them when the user changes records. However, any time
I run any kind of function off an event, I get a message that says

The expression On Current you entered as the event property setting
produced the following error: A problem occurred while Microsoft Office
Access was communicating with the OLE server or ActiveX Control

I changed the code to do nothing but open a msgbox, and even changed it
from a private sub to a public function. I can run the function just
fine from the VB window, but I get the error whenever I try to run it
off an event. I googled around a bit and looked for any missing
references, but I couldn't find any.

Anyone that could help me out I'd be eternally grateful. This problem
has pretty well brought my project to a screeching halt.

Thanks!

Nov 13 '05 #2
I happened to have a backup from a couple of meetings ago, and
recreated the subform. Everything works just fine! The DB must have
just gotten corrupted. Thanks!

Nov 13 '05 #3

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

Similar topics

0
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
1
by: Matt | last post by:
My problem is when the user click the submit button, it will launch another new window for the request page. I want to confirm we cannot use JavaScript open window functions to open a request page?...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
8
by: Dev | last post by:
Hello, Why an Abstract Base Class cannot be instantiated ? Does anybody know of the object construction internals ? What is the missing information that prevents the construction ? TIA....
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
4
by: Koen | last post by:
Hi all, At work I created a database which is really helpful. The database is used by approx 15 users. Everything worked great, until I added some 'scoreboard' forms and reports. I get the...
8
by: wASP | last post by:
Hi, I'm having a problem referencing the elements within an object after a method of that object (a member function) has been activated with an onsubmit handler: - - - - - - - - ...
7
by: Christian Christmann | last post by:
Hi, in my source code I've included a library I've not written and source code is available. In a function, I've generate an object of that library class dynamically with "new" and at the...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
7
by: dennis.sprengers | last post by:
I am trying to write an editor object, which adds some functionality and a toolbar to every textarea with a "form-textarea" class. Both FF and IE generate an error in line 20...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.