Missing reference in Access

Solved
Hello,

I am working on a program in Access 2003. I am doing this on both a desktop computer at my workplace and on my laptop. I started developing the program on the desktop, but now that I want to work on my laptop, I receive the following error when I try to open it:

The expression On Load entered as a parameter of the event type property is causing an error. A problem occurred during communication between Microsoft Office Access and the OLE server or the ActiveX control. *The result of the expression is not the name of a macro, the name of a user-defined function, or [Event Procedure]. *An error may have occurred while evaluating a function, event, or macro.


When I check the help, it tells me to uncheck the missing references in Options->References, but none of my references are marked as missing.

I have reinstalled Access, but it hasn't helped.
I also want to specify that I am using the same version on both machines (11.5614.5606).

Do you have any idea what might be causing the problem, or even a solution?

Thank you for your help.
Configuration: Windows XP Firefox 2.0.0.11

2 answers

  • Votes
  • Date
  • Descending date
  1. Moderator
    Hi,

    do you use any specific ActiveX controls that might only be installed on one of your two machines: calendars, treeview, smtp servers...?

    Otherwise, it's a "stupid" VBA compilation error...

    --

    A+ Blux
     "Fools will do anything. That's how you recognize them." 
    1. Hi,
      I’m using a calendar but I don't think the error comes from that.
      I’ve made several attempts and this error only occurs if I open a form in which I have a Form_Load procedure
      even if it's empty.
      However, in my programs made on my laptop, I can put code in Form_Load without any problem...

      If it’s just a compilation error, it seems strange to me that it appears in each of my backups and that I can run the program on the original computer.

      ++
    2. Moderator
      @metalque89Do you have any code in your form? (not necessarily on form_load)

      --

      A+ Blux
       "Fools dare everything. It's even how you recognize them." 
    3. @bluxYes, I have code, but as long as I don't have the Form_Load procedure, I don't have a problem.
    4. Moderator
      @metalque89To test:

      - repair the database
      - copy the form from the original machine
      - delete/recreate the form
      -...

      --

      See you Blux
       "Fools dare to do anything. That's even how you recognize them"
    5. @bluxWhat do you mean by "repairing" the database? How do I do that?