?
Solved

How do you stop missing or broken reference message

Posted on 2004-09-02
3
Medium Priority
?
315 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…
Suggested Courses

770 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