Error Message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

I have got a very simple piece of code which runs on the "On Click" event of
a command button. Here it is:

Private Sub Yes_proceed_combut_Click()

x = MsgBox("We are obliged to advise you that Anchorman is authorised and
regulated by the Financial Services Authority and are covered by the
Financial Services Compensation Scheme", 0, "Important Information")

End Sub

Unfortunately, every time I try to check that this code is working an error
message appears as follows:-

The expression "On Click" you entered as the event property setting produced
the following error: Object or class does not support the sets of events

I do not know why this is not working - it seems straightforward to me. I
have used similar code in a previous database I set up and it worked ok.

If anyone could help I'd be really grateful - I'm tearing my hair out!!!

Thanks.

Gillian
 
Hi Gillian,


---------- Compile ----------

Whenever you write or paste code, your should ALWAYS compile it before
you attempt to run it.

from the menu: Debug, Compile

fix any errors on the yellow highlighted lines

keep compiling until nothing happens (this is good!)


Warm Regards,
Crystal
*
(: have an awesome day :)
*
MVP Access
Remote programming and Training
strive4peace2006 at yahoo.com
*
 

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

Back
Top