473,625 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

linking images in a split database

Hi everyone

I will be having a split database, running on 2 computers via mapped
drive.

computer "A" will have one front end and the back end located in c:
\mydatabse
2 tables have links to many images stored as c:\mydatabse\im ages
\images.jpg
so computer A has no problem accessing the picture

computer B will be mapped to the database folder on computer A as
drive G

how is it possible for computer B to link to the images, as his front
end will be looking for images on drive C

keeping in mind the images are changing all the time but always in the
same folder

I have not done this before, and read few posts which none I found
could solve my problem

any directions will be appreciated

Apr 30 '07 #1
3 2468
Map the drive letter "G" on computer "A" to the shared folder, so computer
"A" and "B" has the same data path.

"najimou" <ij********@hot mail.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
Hi everyone

I will be having a split database, running on 2 computers via mapped
drive.

computer "A" will have one front end and the back end located in c:
\mydatabse
2 tables have links to many images stored as c:\mydatabse\im ages
\images.jpg
so computer A has no problem accessing the picture

computer B will be mapped to the database folder on computer A as
drive G

how is it possible for computer B to link to the images, as his front
end will be looking for images on drive C

keeping in mind the images are changing all the time but always in the
same folder

I have not done this before, and read few posts which none I found
could solve my problem

any directions will be appreciated

May 1 '07 #2
On May 1, 11:33 am, "paii, Ron" <p...@packairin c.comwrote:
Map the drive letter "G" on computer "A" to the shared folder, so computer
"A" and "B" has the same data path.

"najimou" <ijandar...@hot mail.comwrote in message

news:11******** **************@ o5g2000hsb.goog legroups.com...
Hi everyone
I will be having a split database, running on 2 computers via mapped
drive.
computer "A" will have one front end and the back end located in c:
\mydatabse
2 tables have links to many images stored as c:\mydatabse\im ages
\images.jpg
so computer A has no problem accessing the picture
computer B will be mapped to the database folder on computer A as
drive G
how is it possible for computer B to link to the images, as his front
end will be looking for images on drive C
keeping in mind the images are changing all the time but always in the
same folder
I have not done this before, and read few posts which none I found
could solve my problem
any directions will be appreciated- Hide quoted text -

- Show quoted text -
You could also use the Subst command in computer A. Run the following
command from a command prompt "subst /?" it will show you how it
works.

I always use it to resolve issues like the one you have.

May 2 '07 #3
bob


It's a good idea to only store the filename in the database (or the varying part of the relative path,
if the images are stored in multiple directories), then construct the full path at runtime when you need
to display the image. If the images are stored in a subdirectory of the database location you can obtain
the path to the database using code then build the full path to the image - then the images will be found
whether the database is accessed on a local drive, via a mapped share, or via a unc path, without needing
additional configuration.

The following article describes how to get the path to the database, including a method to get the path
to the back-end in a split design (see option 3):

http://tinyurl.com/y3vzzp
This article discusses using relative paths in more detail:

http://tinyurl.com/ylvvsk

And this article shows how to parse the filename from a full path:

http://tinyurl.com/2svnog
Sample code for using an image control on a form is as follows (watch for line wrap - see the code in the
articles above if in doubt):

'Filename' is a field containing the filename (only).
'Image1' is an image control.
'tblLinked' is a linked table in the back-end database.
The image files are stored in a subdirectory 'images' relative to the location of the back-end.
Private Sub Form_Current()
Dim ImagePath As String
ImagePath = GetImagePath & [Filename]

If Len([Filename]) 0 And Len(Dir(ImagePa th)) 0 Then
Image1.Picture = ImagePath
Else
Image1.Picture = ""
End If
End Sub
Public Function GetImagePath() As String
GetImagePath = GetDBPath & "images\"
End Function
Public Function GetDBPath() As String
Dim strFullPath As String
strFullPath = Mid(DBEngine.Wo rkspaces(0).Dat abases(0).Table Defs("tblLinked ").Connect, 11)
GetDBPath = Left(strFullPat h, InStrRev(strFul lPath, "\"))
End Function


najimou <ij********@hot mail.comwrote:
>Hi everyone

I will be having a split database, running on 2 computers via mapped
drive.

computer "A" will have one front end and the back end located in c:
\mydatabse
2 tables have links to many images stored as c:\mydatabse\im ages
\images.jpg
so computer A has no problem accessing the picture

computer B will be mapped to the database folder on computer A as
drive G

how is it possible for computer B to link to the images, as his front
end will be looking for images on drive C

keeping in mind the images are changing all the time but always in the
same folder

I have not done this before, and read few posts which none I found
could solve my problem

any directions will be appreciated
May 2 '07 #4

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

Similar topics

3
3974
by: Ken | last post by:
I have a win 2000 database of autographs and scanned photos. They are in the SAME directory. In the table, my "ImagePath" text field shows JUST the image name (i.e. "blank.jpg"). I have an image field that links to the ImagePath field. But it does not display in the form. I go in and delete the image field and add it back in and link it to the "blank.jpg" file (its a dummy jpg that says "Not Avail"). Then I make sure it is linked and not...
2
2709
by: jayjay | last post by:
In the database I have, its split into front end screens and reports and backend tables for data. Of course, this means the linked tables are linked using the linked table wizard to the network drive mapping the server is on. since this database will be used by multiple people, it then means that each user must have the same drive mapped to the same drive letter. The linked table manager doesn't recognize UNC encoding. The problem...
5
4792
by: chrisse_2 | last post by:
Hi, All the records in my database will contain at least one picture. At the moment all the images are part of the database as ole objects although the database is way to big and there is only 12 records in it. I have been reading about linking images into the database and i would like to use the method linking via code this way the database will be as small as possible.
1
3223
by: Xah Lee | last post by:
The following is a program to generate thumbnail images for a website. Useful, if you want to do that. It is used to generate the thumbnails for my “Banners, Damsels, and Mores” project gallery. ( http://xahlee.org/Periodic_dosage_dir/lanci/lanci.html ) Comments and versions in other lang welcome. Xah
8
1679
by: fauxanadu | last post by:
Question: How does one create a relational link to an image in Access? In other words, instead of an image control with a path of "C:/Database Folder/Images/image001.jpg", I want to be able to link to "./Images/image001.jpg" Technical: Tables: tblIndex numMapID (primary) numXCoord numYCoord
5
2912
by: rodeodaisy | last post by:
Hello, I'm having trouble with MS Access 2007 (running Vista). I have a table with multiple fields, including several text fields containing the links to images relevant to that record. The outcome is a form with multiple images that change with each record. This works fine, however once I shut the database down and restart, it stops working. I've figured out that it is because i'm only putting in the relative path (image.jpg) rather than...
4
2855
by: Mike | last post by:
I have a multiuser access database to which I have split into fe & be. The system refreshes the links at each log-on between the fe & be automatically via code. PROBLEM: Locally it runs perfectly... in the client server setting the re- linking is extremely slow...
8
2262
tharden3
by: tharden3 | last post by:
Hey Bytes, The website I'm working on is coming along just fine, and I'd like to thank all of you PHP folks who have been helping me out. I'm almost done with the coding! I'm trying to get the data-basing code finished with. I've got my products, with lines of text next to it that serve as descriptions. With each of those entries, I have images. I've implemented the code for displaying the text, and I've also implemented the code for the...
5
13347
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8253
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8189
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
8635
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
8354
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
8497
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
7182
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 projectplanning, coding, testing, and deploymentwithout 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
4089
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...
1
2621
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
1499
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.