473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Adding Broken References

JD
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.References.AddFromFile 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 4426

"JD" <fl*********@rocketmail.com> wrote in message
news:93**************************@posting.google.c om...
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.References.AddFromFile 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-***@NOSPAMpeterssoftware.com> wrote in message news:<N0%gb.523103$Oz4.380564@rwcrnsc54>...
"JD" <fl*********@rocketmail.com> wrote in message
news:93**************************@posting.google.c om...
I'm trying to add a custom utility.mde reference to an application
from code using the standard Application.References.AddFromFile 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
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....
9
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...
11
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 .......
3
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...
2
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...
3
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...
3
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...
5
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. ...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.