Solved

How do you stop missing or broken reference message

Posted on 2004-09-02
3
302 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
Comment Utility
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
Comment Utility
Actually, I think this is the way to do it:

varRtn = Eval("MyStartupFunction()")
0
 

Author Comment

by:kbutler
Comment Utility
Thanks
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now