473,407 Members | 2,676 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,407 software developers and data experts.

Access References Using UNC

Jay
Using a custom mda file that holds the code for the login sequence for
multiple Access 2000 databases. The problem occurs when the reference
path is changed to a UNC path. This happens when maintenance is
performed on the databases, the path changes from a drive letter to
the UNC path. Users to not have access to this path. Is there a way
to set the location through code for the path to the mda. I would
like to use this in case our developers forget to change the path back
to the drive letter. I want to trap the error and reset it to the
drive letter.

Basically, is there a way to get to the location of references without
going through the wizard in Visual Basic?

Thanks in advance.

Jay
Nov 13 '05 #1
3 2513
There is a References object that may help

Sub test()
Dim ref As Reference
For Each ref In Application.References
MsgBox ref.Name
Next ref
End Sub

www.trigeminal.com has an article about "disambiguating" references to
be certain the system doesn't hang if one of the references is broken

On 7 Jul 2004 15:25:30 -0700, sp**********@colteng.com (Jay) wrote:
Using a custom mda file that holds the code for the login sequence for
multiple Access 2000 databases. The problem occurs when the reference
path is changed to a UNC path. This happens when maintenance is
performed on the databases, the path changes from a drive letter to
the UNC path. Users to not have access to this path. Is there a way
to set the location through code for the path to the mda. I would
like to use this in case our developers forget to change the path back
to the drive letter. I want to trap the error and reset it to the
drive letter.

Basically, is there a way to get to the location of references without
going through the wizard in Visual Basic?

Thanks in advance.

Jay

**********************
ja**************@telusTELUS.net
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
Nov 13 '05 #2
Jay
This was helpful in viewing the references at runtime however the
values are in a read only state and I cannot change the fullpath
value.
Nov 13 '05 #3
You must remove the broken reference from the References collection,
then add a new one with the correct path.

References.Remove ref
References.AddFromFile fullpathname

On 8 Jul 2004 08:43:29 -0700, sp**********@colteng.com (Jay) wrote:
This was helpful in viewing the references at runtime however the
values are in a read only state and I cannot change the fullpath
value.

**********************
ja**************@telusTELUS.net
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
Nov 13 '05 #4

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

Similar topics

23
by: JustMe | last post by:
I don't know if this has anything to do with AccessXP running on Terminal Services with Access97/2000 also installed, but here is one example of a query that does not work any longer: SELECT...
2
by: Peter Mather | last post by:
Hi, I have struck problems when trying to convert an Access97 database to Access 2000. I get a compile Error when I start the database in Access 2000.. The message is Can't find project or...
0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
4
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable...
3
by: James P. | last post by:
Hello there, I'd like to have my minutes convert to hours and minutes in Access report in this format: hh:mm. For examples: 150 minutes converts to 2:30. I have this formula below used to work...
11
by: WindAndWaves | last post by:
Hi Gurus I have recently discovered references in the VB section of MS Access, however, when choosing references, I noticed that there are more than who knows how many options. How and/or where...
3
by: SAM | last post by:
Hi everyone, I consider myself a very competent programmer when it comes to actual programming and analyzing the business that I'm modelling. I am now crossing into what I would consider Access...
3
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window...
5
by: Reg (Lincolnshire) | last post by:
Hi, On a machine running Vista I have just converted an A2003 application to A2007, built an MSI package for it and installed it on my kid's PC, which is running Windows XP and A2003. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.