473,404 Members | 2,187 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,404 software developers and data experts.

Importing Hyperlinks from Excel to Access

When I import an Excel file containing hyperlinks into Access, the
hyperlinks turn into text and no longer hold their links. I am using
the TransferSpreadsheet function in Access to import my table. I have
done a bit of searching a come across this code:

UPDATE tblTest SET tblTest.hyperdocs = "#" & [hyperdocs] & "#";
(where tblTest = name of table and hyperdocs = name of hyperlink
field in spreadsheet

This is supposed to add pound signs around the hyperlink to make it
active. I am having trouble getting this to work and wanted to know if
their was a better way to go about it or if someone could instruct me
on how I enter this line of code into my database. Thanks.

May 11 '06 #1
4 7104
Ja************@ge.com wrote:
When I import an Excel file containing hyperlinks into Access, the
hyperlinks turn into text and no longer hold their links. I am using
the TransferSpreadsheet function in Access to import my table. I have
done a bit of searching a come across this code:

UPDATE tblTest SET tblTest.hyperdocs = "#" & [hyperdocs] & "#";
(where tblTest = name of table and hyperdocs = name of hyperlink
field in spreadsheet

This is supposed to add pound signs around the hyperlink to make it
active. I am having trouble getting this to work and wanted to know if
their was a better way to go about it or if someone could instruct me
on how I enter this line of code into my database. Thanks.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The target column in the target table has to have the data type of
Hyperlink. If you are making a new table with the imported Excel file,
the default data type for an Excel hyperlink field is Text. You'll have
to change the column's data type after importing the Excel data.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRGOJRIechKqOuFEgEQJTegCg/DE0p2HfhlWC+Zg6uyMibkjXPGAAoOKC
CBBJqb7OVsdptKz7DZtRt6qy
=4OxF
-----END PGP SIGNATURE-----
May 11 '06 #2
Thanks for the reply. I have tried changing the data type for the
column from text to hyperlink, but this only makes the data appear as a
hyperlink (underlined and blue). The actual file path is no longer
linked with it once the import takes place. Any other suggestions?

May 11 '06 #3
Ja************@ge.com wrote:
Thanks for the reply. I have tried changing the data type for the
column from text to hyperlink, but this only makes the data appear as a
hyperlink (underlined and blue). The actual file path is no longer
linked with it once the import takes place. Any other suggestions?

If it's underlined & blue, that means its a hyperlink & if you click on
it it should take you to the file/document/<whatever>. So, what is this
hyperlink point to?
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
May 11 '06 #4
The hyperlink should point to a document on a drive on my computer.
However once the table is imported the link is broken so when I click
to open it I get a message box that tells me that it is unable to open
the document.

May 11 '06 #5

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

Similar topics

11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
9
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
1
by: Geoff Jones | last post by:
Hi I have a question which I hope somebody can answer. I have written a VB application with which I want to import an Excel file, analyze the data within it and do some calculations. There are...
1
by: winzy | last post by:
I have a table in Access which needs updating from an Excel file. Instead of importing the whole Excel like a new table in Acess, how do I do a partial import/update?? For example, Access table...
5
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All...
12
by: Frustratee | last post by:
Sorry guys, this is killing me. I have been fighting this issue for several weeks, to no avail. I am exporting the results of a query to an excel sheet, with one of the columns being from a field...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
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...
0
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...
0
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,...

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.