473,385 Members | 1,872 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,385 software developers and data experts.

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\images
\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 2433
Map the drive letter "G" on computer "A" to the shared folder, so computer
"A" and "B" has the same data path.

"najimou" <ij********@hotmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.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\images
\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...@packairinc.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...@hotmail.comwrote in message

news:11**********************@o5g2000hsb.googlegro ups.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\images
\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(ImagePath)) 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.Workspaces(0).Databases(0).TableDefs( "tblLinked").Connect, 11)
GetDBPath = Left(strFullPath, InStrRev(strFullPath, "\"))
End Function


najimou <ij********@hotmail.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\images
\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
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...
2
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...
5
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...
1
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...
8
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...
5
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...
4
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...
8
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...
5
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...
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: 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
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?
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
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,...

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.