Re: Object or class does not support the set of events?
- From: Bill K <BillK@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Jul 2005 20:49:02 -0700
After searching for clues and trying everything I could, I think I managed to
stop the errors from occuring. The decompile tip was very beneficial--big
thanks to Larry Linson on that one. Unfortunately, my problem was more
involved but while finding the syntax for the decompile, I came across some
tips on finding corruption. Recreating the database and importing didn't
solve the problem, but what did was the SaveAsText option. Here is an
excerpt from a post by Allen Browne regarding this:
----
"Something else you could try with the suspect objects is to save them as
text, and then import them from the text file. For example, to save Form1
from the corrupted database:
SaveAsText acForm, "Form1", "C:\form1.txt"
Then in the new database:
LoadFromText acForm, "Form1", "C:\form1.txt"
----
That process should give you a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, the reference ambiguities are
resolved, and know each step is okay before moving on to the next one."
Also, searching the newsgroups for "corrupt" or "corruption" will give you
more information on these issues. Someone correct me if I'm wrong, but it
appears that the tables and forms in Access somehow lose their "link" with
the underlying VB code and try to refer to event procedures you may have
removed in the past (or not have implemented at all.)
SaveAsText/LoadFromText looks like a last-resort solution but it may be the
one thing that fixes your database after trying everything else. Good luck!
Bill K
"bhwithun" wrote:
>
> I am also working on a Microsoft Access database and receiving this same
> odd error. Not too much out here for clues as to what's wrong. I am
> using Windows XP, Access 2000. In my case it's rather simple. I have
> a table that I can interact with manually and with forms, but when I
> try to place an event procedure on a form field, I get the error you
> mention at runtime.
>
> The event procedure can even be EMPTY, with no instructions. I don't
> see how database corruption can account for this, but then who knows.
> The application works perfectly, but if I try to put any kind of event
> procedure on any kind of keyboard event, bam!
>
> I have not gone through to figure out if ANY event will cause this
> error, or if this particular event will crash on ANY form field, but I
> am running out of other creative debugging ideas and will soon get
> around to trying that. If I make any progress I will be quick to post
> the solution. Short of that I will post any ideas or tips I may run
> across.
>
> Good luck with your debugging.
>
> Brian Herbert Withun
> Carleton, MI
>
>
> --
> bhwithunPosted from http://www.pcreview.co.uk/ newsgroup access
>
>
.
- References:
- Object or class does not support the set of events?
- From: Bill K
- Re: Object or class does not support the set of events?
- From: bhwithun
- Object or class does not support the set of events?
- Prev by Date: Re: A command button to preview the recordset of a form
- Next by Date: Re: Forms In Access
- Previous by thread: Re: Object or class does not support the set of events?
- Next by thread: Re: Limit character entry
- Index(es):
Relevant Pages
|