Strange errors with Access xp forms

  • Thread starter Thread starter James Garner
  • Start date Start date
J

James Garner

Hi guys,

I've been getting some bizarre error messages with a form in Access and I
was hoping somebody might be able to recognise the problem and point me
towards a solution.

I have a fairly elaborate unbound form with quite a bit of VBA code behind
it which is eventually going to serve as a stock charting application. When
I switch from Design View to Form View, I get an error message saying that
'The expression On Load you entered as the event property setting produced
the following error: Invalid outside procedure.'

Once I click OK a couple of times, the form displays but without executing
the Form_Load procedure. I then get the same kind of error message for On
Click with buttons and occasionally On MouseMove (for which I haven't even
written any code).

I can't make any sense of it. The property settings all point to the right
procedures and the code works in isolation on other forms. It feels like
some kind of a bug in Access but, if so, how do I work around it?

I am using Access xp on Windows xp. Many thanks for any advice!

James.
 
Go to the Visual Basic Editor and check your Tools>References - If any say
MISSING or other errors this tends to throw those kinds of errors when you
attempt to run the form.

Eric Dreksler
 
Hi Eric,

Thanks for that but the References all seem intact and as they should be. I
am using a third-party ActiveX control but it's referenced and everything
and seems to work fine on other forms.

I'm afraid I'm at a bit of a loss as to what the problem might be! Would
appreciate any other thoughts you had!

James.
 
Back
Top