Object or class does not support the set of events

G

Gratton

I built a very small database in Access 2003 SP3 on a Windows 7 PC.
Everything works fine on My PC, but when I send the MDB file to Someone to
view my demo Form they get the following Error.
"The expression ON Click you entered as the event property setting produced
the following error: Object or Class does not support the set of events."
What is going wrong on thier PC.

Thanks for any help...
 
A

Arvin Meyer [MVP]

They may have a missing reference. Open any code window, and go to Tools >>>
References and look for any marked as missing. Browse to it and make sure it
is found.
 
G

Gratton

Thanks Arvin,

But i'm a little confused. I built this DB after doing a fresh install of
Access 2003. I didn't add any Additional references myself. I just went with
what was installed. So; when i start adding code for my button on a form, do
refences get added based on certain bits of code i write. I used a piece of
code from the help file that allows the user to browse thier system to select
a file to work with. This is the first line of that code. "With
Application.FileDialog(3)" I've never used this code before. So maybe that 's
the problem. My confusion is; if it's working on my pc after a fresh install
why would it not work on someone elses PC; AND how does one go about sending
DB's to friends, family, Potentail employers so that Forms and Code Work as
they do on my PC and still allow them to view the code if needed. In other
words, I DON"T want to send an mde file.

Thanks for any advice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top