Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

Change/append hyperlink field to text

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
DCUnited
Asked:
DCUnited
  • 2
  • 2
1 Solution
 
Dale FyeCommented:
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
 
DCUnitedAuthor Commented:
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
 
Dale FyeCommented:
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
 
DCUnitedAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now