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

Hyperlink field

Ray
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears not to accept file path and
adds some additional characters, i.e.,%20 between space of the file path.
Can someone advise why it happens and if I can use the old method to store
the file path.

Thanks,

Ray
Nov 13 '05 #1
3 11079
Hyperlinks have to work with files from different operating systems, e.g.
Unix on the web. Some systems do not cope with embedded spaces, so the
standard is to replace a questionable character with a percent sign followed
by the hexadecimal value for the character. 20h is a space.

This is the correct way to specify file names in the Address part of the
hyperlink field. You will also notice forward slashes in the path. If you
don't like how it looks, you can set the Display part of the hyperlink
however you wish.

The HyperlinkPart() function is useful for parsing the parts of the
hyperlink. More info on how hyperlinks work in:
Introduction to Hyperlink fields
at:
http://members.iinet.net.au/~allenbrowne/casu-09.html

--
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.

"Ray" <No**************@Yahoo.com.HK> wrote in message
news:32*************@individual.net...
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears not to accept file path
and
adds some additional characters, i.e.,%20 between space of the file path.
Can someone advise why it happens and if I can use the old method to
store
the file path.

Nov 13 '05 #2
Ray
Allen,

Thanks for your useful information.

Now, my database has some data entered by Access 97 in the past and by
Access 2003 now. I note that they store the data differently as below:-

Access 97 - #Disk P002\FrmSmp97.mdb#
Access 2003 - Disk P002\FrmSmp97.mdb#Disk%20P002/FrmSmp97.mdb#

Both display texts are "Disk P002\FrmSmp97.mdb". When I move the cursor to
both fields, they show differences as below:-

Access 97 - Disk P002\FrmSmp97.mdb
Access 2003 - Disk%20P002\FrmSmp97.mdb

I can tolerate the difference provided there is no functionality issue.
However, it seems to store the relative path. In Access 97, there is an
option to select relative path or absolute path. Do you have any idea where
it is on Access 2003.

In addition, the path shows on the bottom bar when the cursor is on the
hyperlink field but now only shows "Form View".

Thanks,

Ray
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Hyperlinks have to work with files from different operating systems, e.g.
Unix on the web. Some systems do not cope with embedded spaces, so the
standard is to replace a questionable character with a percent sign
followed by the hexadecimal value for the character. 20h is a space.

This is the correct way to specify file names in the Address part of the
hyperlink field. You will also notice forward slashes in the path. If you
don't like how it looks, you can set the Display part of the hyperlink
however you wish.

The HyperlinkPart() function is useful for parsing the parts of the
hyperlink. More info on how hyperlinks work in:
Introduction to Hyperlink fields
at:
http://members.iinet.net.au/~allenbrowne/casu-09.html

--
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.

"Ray" <No**************@Yahoo.com.HK> wrote in message
news:32*************@individual.net...
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears not to accept file path
and
adds some additional characters, i.e.,%20 between space of the file path.
Can someone advise why it happens and if I can use the old method to
store
the file path.


Nov 13 '05 #3
Agreed, Ray. The inconsistencies are not helpful, and the lack of any
obvious way to specify absolute/relative in the dialog really limits its
usefulness. There's also a security warning issue in A2003 as well, and you
can't avoid that just by lowering the setting under Tools | Macros |
Security.

You can specify a HyperlinkBase through File | Database Properties | Summary
if that's any help. I guess you could use the AfterUpdate event of the text
box to parse the hyperlink with HyperlinkPart() and fix up the path if
necessary.

Realistically, though, I've given up on using hyperlinks to store links to
local files. Instead I just use a Text or Memo field, with a command button
to insert the file or path using the API code in:
http://www.mvps.org/access/api/api0001.htm
http://www.mvps.org/access/api/api0002.htm
This avoids the display problems (user modifes the display and not the
address), path issues, security interruptions, and inconsistencies.

--
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.

"Ray" <No**************@Yahoo.com.HK> wrote in message
news:32*************@individual.net...
Allen,

Thanks for your useful information.

Now, my database has some data entered by Access 97 in the past and by
Access 2003 now. I note that they store the data differently as below:-

Access 97 - #Disk P002\FrmSmp97.mdb#
Access 2003 - Disk P002\FrmSmp97.mdb#Disk%20P002/FrmSmp97.mdb#

Both display texts are "Disk P002\FrmSmp97.mdb". When I move the cursor
to both fields, they show differences as below:-

Access 97 - Disk P002\FrmSmp97.mdb
Access 2003 - Disk%20P002\FrmSmp97.mdb

I can tolerate the difference provided there is no functionality issue.
However, it seems to store the relative path. In Access 97, there is an
option to select relative path or absolute path. Do you have any idea
where it is on Access 2003.

In addition, the path shows on the bottom bar when the cursor is on the
hyperlink field but now only shows "Form View".

Thanks,

Ray
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Hyperlinks have to work with files from different operating systems, e.g.
Unix on the web. Some systems do not cope with embedded spaces, so the
standard is to replace a questionable character with a percent sign
followed by the hexadecimal value for the character. 20h is a space.

This is the correct way to specify file names in the Address part of the
hyperlink field. You will also notice forward slashes in the path. If you
don't like how it looks, you can set the Display part of the hyperlink
however you wish.

The HyperlinkPart() function is useful for parsing the parts of the
hyperlink. More info on how hyperlinks work in:
Introduction to Hyperlink fields
at:
http://members.iinet.net.au/~allenbrowne/casu-09.html
"Ray" <No**************@Yahoo.com.HK> wrote in message
news:32*************@individual.net...
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears not to accept file path
and
adds some additional characters, i.e.,%20 between space of the file
path.
Can someone advise why it happens and if I can use the old method to
store
the file path.

Nov 13 '05 #4

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

Similar topics

2
by: deko | last post by:
I have a subform in my Access 2002 mdb that holds Hyperlinks to documents (.pdfs) that are associated with each record in the database. The datasheet subform is simply a list of Hyperlinks to...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
4
by: Salad | last post by:
If I create a field as a hyperlink, Access will open the hyperlink if I single click it. Is there a method within the operating system that would tell access to only open the hyperlink if...
4
by: Andreas Meffert | last post by:
Hello, How can I change the Type of a field in a table from Memo to hyperlink? I import a table from Oracle to Access 2003. After that, the field type of some hyperlink-fields is "Memo". How...
3
by: hermawih | last post by:
Please help . I want to load the contents of another rtf document by double-clicking the words . Chapter1.rtf Chapter2.rtf Chapter3.rtf ....
0
by: shaqattack1992-newsgroups | last post by:
I have a table with a hyperlink field pointing to an Excel file that I would like to automatically print out on a report form. For example, I have a table: Part--------Drawing(hyperlink field)...
2
by: Keith Wilby | last post by:
I have a personnel database with a hyperlink field which contains the path to a mugshot. I was thinking of combining the hyperlink field with the surname field by putting the surname in the...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
1
SBCUser666
by: SBCUser666 | last post by:
Form field (Text66) defined as Hyperlink. Access 2003 table field defined as Hyperlink. Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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,...
0
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...

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.