Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do you stop missing or broken reference message

Posted on 2004-09-02
3
312 Views
Last Modified: 2008-02-01
I have code in my startup form that fixes broken references. However, before the form loads I get the message: " Your myname database or project contains a missing or broken reference to the file ..........

How do I stop that message?
0
Comment
Question by:kbutler
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
pdebaets earned 500 total points
ID: 11968249
You have to be careful not to call or load any code that requires one of your broken references before you fix the references.

Access will load modules "as-needed". So put your code that fixes references in a separate module and make sure that there is no other code in that module that requires one of your broken references. Make sure no forms are loaded at startup that run code that requires one of the broken references.

Then using an autoexec macro, call your function (and only your function) that fixes the references. This will load only the reference-fixing module, and not any of the others. At the end of your function that fixes the references, call your startup procedure that exists in another module using the Eval function. Ex.:

varRtn = Eval("MyStartupFunction")

This way, it is only when the Eval function executes that your subsequent modules will be loaded, and you will have the references fixed by then.

Hope this helps
0
 
LVL 12

Expert Comment

by:pdebaets
ID: 11968260
Actually, I think this is the way to do it:

varRtn = Eval("MyStartupFunction()")
0
 

Author Comment

by:kbutler
ID: 11969182
Thanks
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question