473,769 Members | 3,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding Broken References

JD
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.Ref erences.AddFrom File code.
IT has worked really well with A2K for a couple of years but in
version 10.0 I'm having a bit of trouble.

With the latest Access there are 2 changes that are annoying. First,
a 'broken reference' warning popup appears before my code has a chance
to resolve the problem. It kinda makes the clients nervous. I worked
around that by trapping form error 29070 and suppressed the popup so
the code can do its thing.

The second change is my real problem. While I can add a new reference
it doesn't get saved unless the app was opened exclusively!

Anyone know of a way to get the new reference to stick without having
to open with the /excl switch???

Thanks
JD
Nov 12 '05 #1
2 4445

"JD" <fl*********@ro cketmail.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.Ref erences.AddFrom File code.
IT has worked really well with A2K for a couple of years but in
version 10.0 I'm having a bit of trouble.

With the latest Access there are 2 changes that are annoying. First,
a 'broken reference' warning popup appears before my code has a chance
to resolve the problem. It kinda makes the clients nervous. I worked
around that by trapping form error 29070 and suppressed the popup so
the code can do its thing.
Put your code to set the reference in a separate module. Make sure this code
executes BEFORE any code executes in a module that requires the reference.

Since Access loads modules as-needed, you will get a broken reference error
only when the module requiring the reference gets loaded. If you can put off
loading that module during startup, then you can run code to set your
reference from a separate module.

The second change is my real problem. While I can add a new reference
it doesn't get saved unless the app was opened exclusively!

Anyone know of a way to get the new reference to stick without having
to open with the /excl switch???
Is your setup client/server, oir are you opening one Access db from a server
for multiple users? I'd suggest using the former, then you can open the
client .mdb file exclusively and set your reference.

Hope this helps,
--
Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com

Thanks
JD

Nov 12 '05 #2
JD
Thanks Peter. I should have been more specific.

It is a split database setup and while it is feasible to run all the
front ends with /excl it seems odd that I should have to. Any idea
what has changed between versions that now requires this to be the
case????

Your suggestion re offloading all the functions to a separate module
was how I used to do it with A2K. I used to make sure there were no
calls to that reference in my startup screen and would iterate through
all the refs looking for ref.IsBroken Unfortunately, that yielded
inconsistant results in the new version.

The most expedient solution was to just do a call right of the bat and
trap the error and force the remove/add code for that specific
reference.

Guess I'll have to give in and change all the shortcuts.

Thanks again.
JD
"Peter De Baets" <N-***@NOSPAMpeter ssoftware.com> wrote in message news:<N0%gb.523 103$Oz4.380564@ rwcrnsc54>...
"JD" <fl*********@ro cketmail.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.Ref erences.AddFrom File code.
IT has worked really well with A2K for a couple of years but in
version 10.0 I'm having a bit of trouble.

With the latest Access there are 2 changes that are annoying. First,
a 'broken reference' warning popup appears before my code has a chance
to resolve the problem. It kinda makes the clients nervous. I worked
around that by trapping form error 29070 and suppressed the popup so
the code can do its thing.


Put your code to set the reference in a separate module. Make sure this code
executes BEFORE any code executes in a module that requires the reference.

Since Access loads modules as-needed, you will get a broken reference error
only when the module requiring the reference gets loaded. If you can put off
loading that module during startup, then you can run code to set your
reference from a separate module.

The second change is my real problem. While I can add a new reference
it doesn't get saved unless the app was opened exclusively!

Anyone know of a way to get the new reference to stick without having
to open with the /excl switch???


Is your setup client/server, oir are you opening one Access db from a server
for multiple users? I'd suggest using the former, then you can open the
client .mdb file exclusively and set your reference.

Hope this helps,

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2004
by: Walter Dörwald | last post by:
Hello all! I'm trying to parse broken HTML with several Python tools. Unfortunately none of them work 100% reliable. Problems are e.g. nested comments, bare "&" in URLs and "<" in text (e.g. "if foo < bar") etc. All of these pages can be displayed properly in a browser so why not reuse the parser in e.g. Mozilla? Is there any way to get proper XML out of Mozilla? Calling mozilla on the
9
1937
by: Gary McGill | last post by:
I'm building a set of DLLs in .NET that I plan to call from a VB6 application. I've almost got that to work, but now I find that whenever I re-build any of my .NET DLLs, the reference to that DLL in my VB6 project gets broken. So, I need to re-create the reference after every rebuild. This is incredibly frustrating and time-consuming. Is there a way around this?
11
2295
by: Steven D'Aprano | last post by:
Suppose I create a class with some methods: py> class C: .... def spam(self, x): .... print "spam " * x .... def ham(self, x): .... print "ham * %s" % x .... py> C().spam(3) spam spam spam
3
2705
by: ET | last post by:
I don't know whats the problem, but after I added functions to first verify, then relink linked tables if not found, now I can't convert that database to MDE format. I can split the database, but can't convert part of the database with forms, reports, queries to MDE format. Can somebody advice on this? References, in the order, from the top:
2
1499
by: MLH | last post by:
A97 topic. Opening a new thread related to some other discussions - > > > just to make sure < < < that installing an OCX or adding an mdb using references other than the BASIC-3 that I use in all my other A97 MDB's will not change the references in any of those other existing MDB's.
3
5766
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three DLLs. After building it up, I've deployed it on the web server. From my Windows application, I then add a web reference to that web service.
3
1994
by: _DS | last post by:
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to find out what the latter method is doing. I'm assuming that it makes sure that debug exe gets matched to
5
49825
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. To do this, I created a reference to "Microsoft Excel 11.0 Object Library", and have a "using Excel;" directive. I decided to add a method for creating a TextBox using the Shapes.AddTextBox method, which requires a
3
4836
by: Shestine | last post by:
I am trying to add a column to a current table, with data in it. I am only learning, and i have no idea how to change this to make it work. Here is the script I have right now it, but what it does is delete the whole table and recreates it, adding in the extra column. I don't want that. I want the data that is currently there to stay there and then add anew column. How do I reword this (If possible) to make it work? if exists (select * from...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.