Re: Object or class does not support the set of events



On Mon, 31 Mar 2008 14:58:33 -0700 (PDT), jez_s@xxxxxxxxx wrote:

Hi,

I posted the question below last week and received no response. If I
broke some messageboard rule and that's why no one responded please
let me know so I can do it properly next time. I am still looking for
some insight on this problem although I did figure out a work around.
**************************************************

Just be aware that nobody is paid to answer questions here. We're all
volunteers, donating our time for the benefit of others. Not all questions get
answered; questions that are obscure, incomplete, or on subjects that aren't
familiar to whichever volunteers happen to read your question may not get any
response at all. It's nothing personal!

I have a database I've been working on for several weeks now, not
created by me originally (Access 2003). I don't know VBA and so I am
stuck using macros etc. to get it to do what I want.

Learning VBA will really, really repay the effort! Macros are limited, hard to
document, and harder still to debug.

A strange thing happened today. I was making some very minor changes
to validation rules on one tab of a subform, and all of a sudden every
control on the form started giving me this error whenever data was
entered "Object or class does not support the set of events".

Sounds like the form has become corrupted. Do you have a backup? Have you
tried Tools... Database Utilities... Compact and Repair?

It is related to macros on the controls that have conditions like
[CONTROL]<>6, and then use the GoToControl action to move the focus to
a different control elsewhere on the form.

If I remove the macros completely, the errors disappear. If I remove
only the conditions and leave one GoToControl action, the errors
disappear as well. It only happens when I have the conditions
included.

Care to post the actual steps of the macro that cause the problem? That's
probably why you got no answer - it's impossible to debug code that we cannot
see.

There are identically set up macros with conditions and GoToControl
actions all over the other tabs of the form which are still working
fine. Also, all these macros that are now causing the error have been
working fine for weeks.

Unfortunately I don't know much about Access and I don't know anything
about VBA so the information on this error I have been able to find so
far has not been useful to me.

If anyone can give me an idea of how to fix this problem without using
VBA I would be very grateful!

Rebuild the form from scratch and reenter the macro... or post the steps of
the macro and give enough information about control names, datatypes, etc.
that someone who cannot see the database would be able to help.
--

John W. Vinson [MVP]
.



Relevant Pages

  • Object or class does not support the set of events
    ... I posted the question below last week and received no response. ... broke some messageboard rule and that's why no one responded please ... It is related to macros on the controls that have conditions like ... a different control elsewhere on the form. ...
    (microsoft.public.access.gettingstarted)
  • Response to menu in VBA
    ... I have macros which save the file name "temp.xls" which already exists. ... macro to replace the existing file without waiting for the user to input a ... response. ... How do I write this in VBA? ...
    (microsoft.public.excel.programming)
  • Re: OT: Unless F1 teams use Radeon cards under Ubuntu
    ... Radeon 9600 Pro to work AT ALL under Ubuntu. ... VBA macros? ... When I first started I found having to switch to root to perform admin a right PITA, now I cringe every time i see Doze let me make system killing changes without a 2nd thought. ...
    (rec.autos.sport.f1)
  • Re: Command Buttons for Word 2003 Template
    ... This is being created as a template. ... If the user has the macro security level set to high, the macros will ... Learn more VBA to automate your forms. ...
    (microsoft.public.word.docmanagement)
  • Re: How do I stop the control wizrd from creating embedded macros?
    ... Reader question about macros and VBA ... Is there any way on Access 2007 to keep wizards and Switchboard Manager ... security model allows users to run databases without any VBA code enabled ...
    (microsoft.public.access.formscoding)