473,778 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display location of linked db

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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>

Thanks,

susan
Jun 27 '08 #1
5 1433
"susan" <vd*@hotmail.co mwrote in message
news:ae******** *************** ****@cache3.til bu1.nb.home.nl. ..
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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>

Thanks,

susan
Grab this procedure (you'll find instructions how to do this if you're not
sure) :

http://www.smccall.demon.co.uk/DAO.htm#ConnectPart

Then use it like this:

DataName = ConnectPart("DA TABASE")

Jun 27 '08 #2

"Stuart McCall" <sm*****@myunre albox.comschree f in bericht
news:g2******** ***********@new s.demon.co.uk.. .
"susan" <vd*@hotmail.co mwrote in message
news:ae******** *************** ****@cache3.til bu1.nb.home.nl. ..
>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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>

Thanks,

susan

Grab this procedure (you'll find instructions how to do this if you're not
sure) :

http://www.smccall.demon.co.uk/DAO.htm#ConnectPart

Then use it like this:

DataName = ConnectPart("DA TABASE")
Too bad. Dead link...
Jun 27 '08 #3
"susan" <vd*@hotmail.co mwrote in message
news:47******** *************** ****@cache1.til bu1.nb.home.nl. ..
>
"Stuart McCall" <sm*****@myunre albox.comschree f in bericht
news:g2******** ***********@new s.demon.co.uk.. .
>"susan" <vd*@hotmail.co mwrote in message
news:ae******* *************** *****@cache3.ti lbu1.nb.home.nl ...
>>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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>

Thanks,

susan

Grab this procedure (you'll find instructions how to do this if you're
not sure) :

http://www.smccall.demon.co.uk/DAO.htm#ConnectPart

Then use it like this:

DataName = ConnectPart("DA TABASE")
Too bad. Dead link...
It seems my ISP is having problems (I can't access my site either). Please
try again sometime later. They usually fix problems fairly quickly - I'd say
give it a couple of hours.
Jun 27 '08 #4
On Tue, 3 Jun 2008 11:24:42 +0200, "susan" <vd*@hotmail.co mwrote:
>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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>

Thanks,

susan
Assuming the table is a JET table (NOT ODBC) then passing the table name to this
function will return the path of the database containing the linked table.

Function fGetLinkPath(st rTableName As String) As String
Dim strConnect As String

strConnect = CurrentDb.Table Defs(strTableNa me).Connect
fGetLinkPath = Right(strConnec t, Len(strConnect) - 10)

End Function
Wayne Gillespie
Gosford NSW Australia
Jun 27 '08 #5
"susan" <vd*@hotmail.co mwrote in message
news:ae******** *************** ****@cache3.til bu1.nb.home.nl. ..
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 = DBEngine(0)(0). Name

In the application I use links to the tables of my data-database.
How can I retrieve the location / name of the data-database?

DataName = <link to data-database>
In the Immediate Window, where "tblSampleForLi nk" is the name of a linked
table, the following returns the Connect property, from which you can
extract the path and name of a linked Access database.

(Caveat 1: the Connect property will differ depending on the type of
database in which the linked table resides. A linked table in SQL Server or
Oracle will have a different structure for the Connect property's string
value, for example.
Caveat 2: It is possible to link to tables in more than one database, and
if that is the case in your application, you will need to choose a table in
each, if you want to display each linked DB.)

? CurrentDB().Tab leDefs("tblSamp leForLink").Con nect
;DATABASE=C:\da ta\Access\Acces s2003\A2003Test BackEnd.mdb

My sample code is from a database created in Access 2003, but should be the
same for any previous 32-bit version of Access.

Larry Linson
Microsoft Office Access MVP
Jun 27 '08 #6

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

Similar topics

4
1800
by: dmiller23462 | last post by:
Somebody take a look and give me any suggestions? My brain is nuked... Here's my deal....I have online submission forms on my intranet at work here....I am appending to an Access DB with the input from all HTML fields and then querying aforementioned DB with different variables (search by name, wave, reason, etc). The output that I'm getting (SELECT * 'cause I need all of the data included in the search) I would like to display in a nice...
3
4283
by: ARobi | last post by:
I have developped an Access database with a lot of coding. The size of the database without data is about 5 meg. I am ready to copy the database to a client PC which already has a legal version of Access installed. 1.I am used to work with software such has C++ which basically save the program in many files but I notice that Access VBA save all data into a one big file. Any way I can brake it in multiple files? 2. If I make a change in...
1
2733
by: Zelda87 | last post by:
Hello All, I have an OLE Object type field in an Access database. The objects in this field are files which are linked rather than embedded. My question is, how can I get a given object's location as a string? I have tried the following: Dim MainTable As Recordset Dim PicField As Field
3
4565
by: Gerry Abbott | last post by:
I deploy be-fe solutions to clients, and provide them with updates as a web link to the Fe file, wrapped in an installer. I can generally simulate their shares, if they are using a mapped drive. However if they are not using mapped drives, and are using their own domain server address, then I cannot simulate that so easy. Can i manually change the address where the linked table objects point, before deployment.? (I cant do it with a...
3
11355
by: | last post by:
Hi,all I want to change Control's size&location in runtime ,(C#) but i dont know how to do! :(so, can you provide me with document about this. my email: zhonghua@rinpak.com.cn zhonghua_1999@163.com thank you in advance.
11
7655
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type characters into the display myself - but that's not the main issue at this time. I've tried a scrolling multiline text box but once the original viewable area fills up and it starts scrolling the flashing of the entire area drives me nuts. The...
3
1708
by: unclesteve | last post by:
I am working on a project for a law firm where the different files are either boxed or unboxed. Unboxed files can be on a lawyer's desk, on the secretary's desk, or on a shelf in the back room. A file which is Boxed must have the same status and location of its assigned box. If the box’s status or location changes, the status or location of any boxed files must be changed as well. This should happen automatically. A file which is not boxed...
0
979
by: =?Utf-8?B?VHJleA==?= | last post by:
Using Win2003 sp1 and Win2003 sp2 (both ent editions), if I file copy an exe or dll (location A) during software development to location B, if I rebuild the exe/dll in location A, the copy that I put in location B seems to be automatically updated?! Nice feature but what is it and how do I turn it off. It's like a 'linked file'...and I wonder if it's related to my periodic 'Assembly not found' errors. They just come and go for no apparant...
9
4122
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is in another class from the main class. So it couldn't access the Status Line or textbox. So what we did was set them up as properties: string IStatusDisplay.Status
0
9464
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10292
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
10122
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...
0
9923
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
8954
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6722
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
5368
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.