Solved

Change/append hyperlink field to text

Posted on 2013-06-10
4
476 Views
Last Modified: 2013-06-11
I have an excel file that I import into access. I have created a temp table to only pull the info I need. The issue I am having is the excel has a hyperlink that I need to use to link to another table (it's a primary key). Since you can't use a hyperling as a link to another table I tried to append the data into another table where the hyperlink would be text. I doing this it listed the text I needed but also the hyperling address. I need to be able to link to this PK.
0
Comment
Question by:DCUnited
  • 2
  • 2
4 Comments
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39235020
You might try the PlainText() function to strip off the html from the hyperlink text.  

I don't know if that will work (don't use the hyperlink data type for just this reason), but it does work for stripping off other HTML and other Rich Text markups
0
 

Author Comment

by:DCUnited
ID: 39235615
Unfortunatly the data belongs to another group and they want reporting done around it. Is there a way I can delete all texted after the #http? This is another reason for the temp table.
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 300 total points
ID: 39235653
Did you try using the PlainText() function in a query?

SELECT PlainText([hyperlinkFieldName]) as URL
FROM yourTable

IF that doesn't do it, how about:

Left(PlainText([hyperlinkfieldname]), instr(plaintext([hyperlinkfieldname]), "#") - 1)
0
 

Author Closing Comment

by:DCUnited
ID: 39237488
I had already tried the
SELECT PlainText([hyperlinkFieldName]) as URL
FROM yourTable

And it didn't work, but the Left(PlainText([hyperlinkfieldname]), instr(plaintext([hyperlinkfieldname]), "#") - 1)  worked like a charm.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now