[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How do you stop missing or broken reference message

Posted on 2004-09-02
3
Medium Priority
?
317 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
[X]
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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
pdebaets earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

650 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