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

display pathname of linked mdb

Hi,

My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathname of
the data.mdb?

Thanks,

Susan
Sep 3 '08 #1
5 2061
Parse the path from:
CurrentDb.TableDefs("SomeLinkedTableNameHere").Con nect

If it helps, get the GetDataPath() function from here:
http://allenbrowne.com/ser-53.html#DataFile

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"susan" <vd*@hotmail.comwrote in message
news:a8**************************@cache5.tilbu1.nb .home.nl...
>
My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathname of
the data.mdb?
Sep 3 '08 #2
On Wed, 3 Sep 2008 14:18:24 +0200, "susan" <vd*@hotmail.comwrote:

Parse currentdb.TableDefs("SomeAttachedTable").Connect

-Tom.
Microsoft Access MVP

>Hi,

My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathname of
the data.mdb?

Thanks,

Susan
Sep 3 '08 #3
MsgBox CurrentProject.Connection.Execute("SELECT TOP 1 [DataBase] FROM
MSysOBjects WHERE Type = 6")(0)

On Sep 3, 8:18*am, "susan" <v...@hotmail.comwrote:
My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathname of
the data.mdb?
Sep 3 '08 #4
On Wed, 3 Sep 2008 15:03:26 -0700 (PDT), lyle fairfield
<ly************@gmail.comwrote:

But be aware that the MSys* tables are officially undocumented and
users are encouraged to use documented features.

-Tom.
Microsoft Access MVP
>MsgBox CurrentProject.Connection.Execute("SELECT TOP 1 [DataBase] FROM
MSysOBjects WHERE Type = 6")(0)

On Sep 3, 8:18*am, "susan" <v...@hotmail.comwrote:
>My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathname of
the data.mdb?
Sep 4 '08 #5
I appreciate Microsoft's position on undocumented features. They may
be removed or changed at any time. But I am a bit sceptical.

Are undocumented features so different from documented features? Do we
see, here in CDMA, almost every day, posts that describe upgrade woes,
outlining features that worked in a previous version but bring grief
in a newer version? I think we do. How many of these features are
undocumented? My recollection is, "None."

Can we name undocumented features that were present in Access 2000
which do not exist in Access 2007, or behave in a substantially
different way? I cannot. For instance, I have used the undocumented
property or function .Collect(Field-Index) which returns the value of
a record-set field more quickly than the "!" syntax or a .Value call
or a default property reference, thousands of times; to the best of my
knowledge this very useful feature works as expected in every version
of Access (more correctly I suppose in DAO and ADO). .Goto in place
of .SetFocus is another undocumented feature that can be found in my
code many times. It still works flawlessly. I can't remember why I
started to use this, but I think it was because it "Went-To" in some
circumstance where .SetFocus balked.

As for change we have only to look at the new Ribbon to decide, each
for himself or herself, if Microsoft has any commitment to making
change painless.

Does Microsoft encourage us to use Look-Up tables? Recordsets (when
SQL is an east alternative)? Yes?
Have a look at the SQL in Northwoods 2007! Is the inclusion of this in
Northwoods, encouragement?
Is what Microsoft encourages pertinent?

BTW, I am trying to write this in Google's new beta Chrome Browser.
It's very fast. It's spell checker may not be as helpful as some,
Safari's and Opera with GNU ASpell. It seems to take several seconds
to assess spelling and often there is no suggested alternative or a
very brief list.
On Sep 4, 1:08*am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Wed, 3 Sep 2008 15:03:26 -0700 (PDT), lyle fairfield

<lyle.fairfi...@gmail.comwrote:

But be aware that the MSys* tables are officially undocumented and
users are encouraged to use documented features.

-Tom.
Microsoft Access MVP
MsgBox CurrentProject.Connection.Execute("SELECT TOP 1 [DataBase] FROM
MSysOBjects WHERE Type = 6")(0)
On Sep 3, 8:18*am, "susan" <v...@hotmail.comwrote:
My application contains 2 databases:
appl.mdb and data.mdb. From appl.mdb I link to data.mdb.
How can I (in appl.mdb using a commandclick) display the full pathnameof
the data.mdb?
Sep 4 '08 #6

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

Similar topics

0
by: il barbi | last post by:
I delivered a test DB where in the main form there are some frames with associate object with Word files (linked). Now the customer asks me how to get the pathname of the Word files and indeed I...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
11
by: bala | last post by:
hi!!! i need to display a disclaimer which is two page in length in a word document. i also need to format the text. the idea is something as follows on opening the application, a form which...
1
by: Marek Sukiennik | last post by:
I am a newbie so sorry if thsi is too simple a question ... I have a SQL table with an IMAGE type col that contains images. I want to be able to display the image on a web page along with other...
3
by: hpber | last post by:
Hello, I try to check the existence of a file with the function _findfirst(...). The file is located in a directory with a blank in its path name: C: \Program Files\ExtPrg.exe When I run the...
2
by: find clausen | last post by:
But something like: location.pathname.indexOf I want to check if there in the path is a folder named 'travel' tried this: if (location.pathname.indexOf('travel')) zlang = 1; :-(
1
by: Wingot | last post by:
Hey, I have an application codenamed WingFlex. It has a number of aspects to it, but the prudent parts for this problem are all within the "Client" Schema. The Client schema has three tables...
2
by: superunknownman | last post by:
I was trying to capture the pathname only when using var from= window.location.pathname; and I want to lose the filename. Is there another way for me to get just the path?
5
by: susan | last post by:
Hi, In my application I want the location of my application-database as well as the location of my data-database to be displayed. I retrieve the name of the application by: ApplName =...
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: 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
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
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.