Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change/append hyperlink field to text

Posted on 2013-06-10
4
Medium Priority
?
495 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Dale Fye
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 48

Accepted Solution

by:
Dale Fye earned 1200 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

670 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