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

Help with hyperlink

I have a table with one field that ia a hyperlink to a pdf file that opens
a specific file.
Since these files are very big, I would need to change the hyperlink path,
so that I could send the hyperlink to one CDROM.

I can do this part, but my problem ist that this DataBase is distributed in
several machines in several places (not connected) and in each machine the
CDROM drive have it's own letter (D: or E: ...).

But I still have another problem: I can find the CDROM drive from some code
that I copied somewhere, but what happens if the computer doesn't have a
CDROM drive? It can have only a DVD drive or a CD RW.

I think the best way to solve my problem should be to ask the user in what
drive are the pdf files and then I would like all the hyperlinks
re-directionated to the ney path.

Can anyone help me with code to perform this?
I don“t know enought VB for this.

Thanks in advance

Maria Joao
Nov 12 '05 #1
5 2312
Maria Joćo wrote:
I have a table with one field that ia a hyperlink to a pdf file that opens
a specific file.
Since these files are very big, I would need to change the hyperlink path,
so that I could send the hyperlink to one CDROM.

I can do this part, but my problem ist that this DataBase is distributed in
several machines in several places (not connected) and in each machine the
CDROM drive have it's own letter (D: or E: ...).

But I still have another problem: I can find the CDROM drive from some code
that I copied somewhere, but what happens if the computer doesn't have a
CDROM drive? It can have only a DVD drive or a CD RW.

I think the best way to solve my problem should be to ask the user in what
drive are the pdf files and then I would like all the hyperlinks
re-directionated to the ney path.

Can anyone help me with code to perform this?
I don“t know enought VB for this.

Thanks in advance

Maria Joao


Hi Maria,

how about storing only paths relative to the database in the table
(e.g. "\folder1\subfolder1\file1.pdf")
then get the databases directory via Application.CurrentProject.Path
and sticking that in front of the relative path to get the complete path..

Advantage: as long as the database is in the root folder of your
application and the data files reside in the correct folder underneath it,
you can copy the whole shebang to wherever you wish..

Disadvantage: If you intend to distribute the whole thing via CD, people
need to copy it to their hard disk first (and maybe remove the write
protection on the file) to alter any table entries.
Just my 2ct..

Joerg

--
Joerg Glissmann
remove pants to reply.. :-)

Nov 12 '05 #2
Hi,

I think your idea should be the perfect solution, but I still have some
problems:

- If the DB is copied to the Hard drive, then the
Application.CurrentProject.Path doesn't go to the CDRom.
- I could work only from the CD drive, but the database closes because of an
error. I f you can help me with this, I could work only from the CD and
everythig would be OK (except from some delay from working in a CDRom
drive).

Please help me whit this

Thanks in advance

Maria Joao

"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:B43kc.2$i6.222@psinet-eu-nl...
Maria Joćo wrote:
I have a table with one field that ia a hyperlink to a pdf file that opens a specific file.
Since these files are very big, I would need to change the hyperlink path, so that I could send the hyperlink to one CDROM.

I can do this part, but my problem ist that this DataBase is distributed in several machines in several places (not connected) and in each machine the CDROM drive have it's own letter (D: or E: ...).

But I still have another problem: I can find the CDROM drive from some code that I copied somewhere, but what happens if the computer doesn't have a
CDROM drive? It can have only a DVD drive or a CD RW.

I think the best way to solve my problem should be to ask the user in what drive are the pdf files and then I would like all the hyperlinks
re-directionated to the ney path.

Can anyone help me with code to perform this?
I don“t know enought VB for this.

Thanks in advance

Maria Joao


Hi Maria,

how about storing only paths relative to the database in the table
(e.g. "\folder1\subfolder1\file1.pdf")
then get the databases directory via Application.CurrentProject.Path
and sticking that in front of the relative path to get the complete path..

Advantage: as long as the database is in the root folder of your
application and the data files reside in the correct folder underneath it,
you can copy the whole shebang to wherever you wish..

Disadvantage: If you intend to distribute the whole thing via CD, people
need to copy it to their hard disk first (and maybe remove the write
protection on the file) to alter any table entries.
Just my 2ct..

Joerg

--
Joerg Glissmann
remove pants to reply.. :-)

Nov 12 '05 #3
Hey Maria,

Application.CurrentProject.Path gives you the current path where the Access
application sits, so it's no wonder it doesn't change to the CDROM drive...
(My suggestion was to copy the application including the data files to the
hard disk, but of course that takes a lot of space..)

I feared that the database has a problem when you run it off a write
protected medium (i.e. CDROM).

I found a hint at googling for the problem:
http://support.microsoft.com:80/supp...180766&SD=MSKB

(also referenced at http://www.kbalertz.com/Feedback_180766.aspx )

Which gives you a sample code that returns the first CDROM drive letter.
(Don't worry, you only have to copy & paste the first gray area, the second
one with the rather few lines show how to use it..)

Hope that helps,

Joerg
Maria Joćo wrote:
Hi,

I think your idea should be the perfect solution, but I still have some
problems:

- If the DB is copied to the Hard drive, then the
Application.CurrentProject.Path doesn't go to the CDRom.
- I could work only from the CD drive, but the database closes because of an
error. I f you can help me with this, I could work only from the CD and
everythig would be OK (except from some delay from working in a CDRom
drive).

Please help me whit this

Thanks in advance

Maria Joao

"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:B43kc.2$i6.222@psinet-eu-nl...
Maria Joćo wrote:
I have a table with one field that ia a hyperlink to a pdf file that
opens
a specific file.
Since these files are very big, I would need to change the hyperlink
path,
so that I could send the hyperlink to one CDROM.

I can do this part, but my problem ist that this DataBase is distributed
in
several machines in several places (not connected) and in each machine
the
CDROM drive have it's own letter (D: or E: ...).

But I still have another problem: I can find the CDROM drive from some
code
that I copied somewhere, but what happens if the computer doesn't have a
CDROM drive? It can have only a DVD drive or a CD RW.

I think the best way to solve my problem should be to ask the user in
what
drive are the pdf files and then I would like all the hyperlinks
re-directionated to the ney path.

Can anyone help me with code to perform this?
I don“t know enought VB for this.

Thanks in advance

Maria Joao


Hi Maria,

how about storing only paths relative to the database in the table
(e.g. "\folder1\subfolder1\file1.pdf")
then get the databases directory via Application.CurrentProject.Path
and sticking that in front of the relative path to get the complete path..

Advantage: as long as the database is in the root folder of your
application and the data files reside in the correct folder underneath it,
you can copy the whole shebang to wherever you wish..

Disadvantage: If you intend to distribute the whole thing via CD, people
need to copy it to their hard disk first (and maybe remove the write
protection on the file) to alter any table entries.
Just my 2ct..

Joerg

--
Joerg Glissmann
remove pants to reply.. :-)

--
Joerg Glissmann
remove pants to reply.. :-)

Nov 12 '05 #4
Ok

But if the computer doesn't have a CDROM drive? It can have only a DVD drive
or a CD RW. Does this work properly? I don't have a machine to try this.

Thanks

Maria Joao


"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:XK7kc.4$i6.284@psinet-eu-nl...
Hey Maria,

Application.CurrentProject.Path gives you the current path where the Access application sits, so it's no wonder it doesn't change to the CDROM drive... (My suggestion was to copy the application including the data files to the
hard disk, but of course that takes a lot of space..)

I feared that the database has a problem when you run it off a write
protected medium (i.e. CDROM).

I found a hint at googling for the problem:
http://support.microsoft.com:80/supp...180766&SD=MSKB
(also referenced at http://www.kbalertz.com/Feedback_180766.aspx )

Which gives you a sample code that returns the first CDROM drive letter.
(Don't worry, you only have to copy & paste the first gray area, the second one with the rather few lines show how to use it..)

Hope that helps,

Joerg
Maria Joćo wrote:
Hi,

I think your idea should be the perfect solution, but I still have some
problems:

- If the DB is copied to the Hard drive, then the
Application.CurrentProject.Path doesn't go to the CDRom.
- I could work only from the CD drive, but the database closes because of an error. I f you can help me with this, I could work only from the CD and
everythig would be OK (except from some delay from working in a CDRom
drive).

Please help me whit this

Thanks in advance

Maria Joao

"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:B43kc.2$i6.222@psinet-eu-nl...
Maria Joćo wrote:

I have a table with one field that ia a hyperlink to a pdf file that


opens
a specific file.
Since these files are very big, I would need to change the hyperlink


path,
so that I could send the hyperlink to one CDROM.

I can do this part, but my problem ist that this DataBase is distributed

in
several machines in several places (not connected) and in each machine


the
CDROM drive have it's own letter (D: or E: ...).

But I still have another problem: I can find the CDROM drive from some


code
that I copied somewhere, but what happens if the computer doesn't have

aCDROM drive? It can have only a DVD drive or a CD RW.

I think the best way to solve my problem should be to ask the user in


what
drive are the pdf files and then I would like all the hyperlinks
re-directionated to the ney path.

Can anyone help me with code to perform this?
I don“t know enought VB for this.

Thanks in advance

Maria Joao
Hi Maria,

how about storing only paths relative to the database in the table
(e.g. "\folder1\subfolder1\file1.pdf")
then get the databases directory via Application.CurrentProject.Path
and sticking that in front of the relative path to get the complete path..
Advantage: as long as the database is in the root folder of your
application and the data files reside in the correct folder underneath it,you can copy the whole shebang to wherever you wish..

Disadvantage: If you intend to distribute the whole thing via CD, people
need to copy it to their hard disk first (and maybe remove the write
protection on the file) to alter any table entries.
Just my 2ct..

Joerg

--
Joerg Glissmann
remove pants to reply.. :-)

--
Joerg Glissmann
remove pants to reply.. :-)

Nov 12 '05 #5

Hmm.. I would have to try that as well.. I'll have to leave that up to you.

Joerg
Maria Joćo wrote:
Ok

But if the computer doesn't have a CDROM drive? It can have only a DVD drive
or a CD RW. Does this work properly? I don't have a machine to try this.

Thanks

Maria Joao
"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:XK7kc.4$i6.284@psinet-eu-nl...
Hey Maria,

Application.CurrentProject.Path gives you the current path where the


Access
application sits, so it's no wonder it doesn't change to the CDROM


drive...
(My suggestion was to copy the application including the data files to the
hard disk, but of course that takes a lot of space..)

I feared that the database has a problem when you run it off a write
protected medium (i.e. CDROM).

I found a hint at googling for the problem:


http://support.microsoft.com:80/supp...180766&SD=MSKB
(also referenced at http://www.kbalertz.com/Feedback_180766.aspx )

Which gives you a sample code that returns the first CDROM drive letter.
(Don't worry, you only have to copy & paste the first gray area, the


second
one with the rather few lines show how to use it..)

Hope that helps,

Joerg
Maria Joćo wrote:

Hi,

I think your idea should be the perfect solution, but I still have some
problems:

- If the DB is copied to the Hard drive, then the
Application.CurrentProject.Path doesn't go to the CDRom.
- I could work only from the CD drive, but the database closes because
of an
error. I f you can help me with this, I could work only from the CD and
everythig would be OK (except from some delay from working in a CDRom
drive).

Please help me whit this

Thanks in advance

Maria Joao

"Joerg Glissmann" <sp*******@glissmann.de> wrote in message
news:B43kc.2$i6.222@psinet-eu-nl...
Maria Joćo wrote:
>I have a table with one field that ia a hyperlink to a pdf file that

opens
>a specific file.
>Since these files are very big, I would need to change the hyperlink

path,
>so that I could send the hyperlink to one CDROM.
>
>I can do this part, but my problem ist that this DataBase is
distributed
in
>several machines in several places (not connected) and in each machine

the
>CDROM drive have it's own letter (D: or E: ...).
>
>But I still have another problem: I can find the CDROM drive from some

code
>that I copied somewhere, but what happens if the computer doesn't have
a
CDROM drive? It can have only a DVD drive or a CD RW.
>
>I think the best way to solve my problem should be to ask the user in

what
>drive are the pdf files and then I would like all the hyperlinks
>re-directionated to the ney path.
>
>Can anyone help me with code to perform this?
>I don“t know enought VB for this.
>
>Thanks in advance
>
>Maria Joao
>

Hi Maria,

how about storing only paths relative to the database in the table
(e.g. "\folder1\subfolder1\file1.pdf")
then get the databases directory via Application.CurrentProject.Path
and sticking that in front of the relative path to get the complete
path..
Advantage: as long as the database is in the root folder of your
application and the data files reside in the correct folder underneath
it,
you can copy the whole shebang to wherever you wish..

Disadvantage: If you intend to distribute the whole thing via CD, people
need to copy it to their hard disk first (and maybe remove the write
protection on the file) to alter any table entries.
Just my 2ct..

Joerg

--
Joerg Glissmann
remove pants to reply.. :-)

--
Joerg Glissmann
remove pants to reply.. :-)


--
Joerg Glissmann
remove pants to reply.. :-)

Nov 12 '05 #6

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

Similar topics

5
by: Maria Joćo | last post by:
I have a table with one field that ia a hyperlink to a pdf file that opens a specific file. Since these files are very big, I would need to change the hyperlink path, so that I could send the...
10
by: hecsan07 | last post by:
I am a novice programmer. I want to have a hyperlink that looks like so: www.mycoolsite.com?a=21132. On click I want to extract the query string and use it to query a table within a DB (SQL...
1
by: serge calderara | last post by:
Dear all, I have a label control on a form for which the .Text property is update from a dataset field. Then on the same page I have place an Hyperlink control fore which when click, it jump to...
2
by: serge calderara | last post by:
Dear all, I have the following item on my form : <asp:HyperLink id="lblEvtNb" runat="server" NavigateUrl="Event.aspx?id=">Click here</asp:HyperLink> I need to pass as url parameter an Id...
1
by: SAL | last post by:
Has anyone worked with the System.Web.UI.WebControls.HyperLink? I am trying to find examples on how to use it. What I am trying to do is assign a Hyperlink to a document (i.e. .doc, .pdf,...
3
by: Chris | last post by:
I have an access database that we share on a public drive. Also there is a folder in the same drive that has PDF documents. On my computer, I can pull up the PDF document off the hyperlink but on...
10
by: David Thielen | last post by:
Hi; I have help html pages for each page of my ASP.NET webapp. So for the page datasource.aspx, I have help\datasource.htm. Bu what I want when the hyperlink is clicked, for it to look for the...
2
by: Zippy | last post by:
I've been using the hyperlink base in A97 healthily and happily for some time. I'm now trying to do the same in A2003 and having problems: If I set the hyperlink base to c:\temp and link in...
2
by: ssmeshack | last post by:
Hai all, Im having problem to set minimum height to <td> tag. It only takes height only not min-height. Im ie7 browser and developing web based system in Visual Web Deveploper 2008 (C# .Net). ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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...

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.