Share via

Import data from Excel with Hyperlink column, into Access?

Anonymous
2019-11-24T20:51:01+00:00

I have followed the import directions (very simple indeed) and the excel hyperlink column imports into Access as a hyperlink field, but the URL address is missing in the Access field? The text is there but when you right click and look to edit the hyperlink, there is no URL target address shown! It is blank! Clicking on the hyperlink field does nothing! I am creating a new table in Access, not appending to an existing table. Any help will be appreciated.

I can't find any current posts about this?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2019-11-25T14:08:49+00:00

Directly importing hyperlinks from Excel into Access only works if the display text of the hyperlinked cells is the same as the hyperlink address (the URL).

As a workaround, you can export the Excel sheet to HTML and import the HTML file into Access.

Was this answer helpful?

4 people found this answer helpful.
0 comments No comments

11 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2019-11-25T20:27:56+00:00

    Let's say your hyperlink field is named MyField.

    The following expression will return the display text, if different from the hyperlink address (URL):

    Left([MyField],InStr([MyField],"#")-1)

    And for the hyperlink address:

    Mid([Hyp],InStr([MyField],"#")+1,InStrRev([MyField],"#")-InStr([MyField],"#")-1)

    Mid([MyField],InStr([MyField],"#")+1,InStrRev([MyField],"#")-InStr([MyField],"#")-1)

    Finally, for the subaddress (if any):

    Mid([MyField],InStrRev([MyField],"#")+1)

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-11-25T19:24:22+00:00

    Thanks again, and I will report this bug!

    Also, do you know how I would now create 2 new text fields in the same table, one for the text of the hyperlink, and one for the target URL in text format.

    I guess an update query, but with what expression?

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2019-11-25T19:17:31+00:00

    You can report it through File > Feedback > Send a Frown, or put in a request at https://access.uservoice.com/

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-11-25T19:07:54+00:00

    I just tried it and it worked fine! Thanks!

    Do you have any idea why Microsoft does not fix this bug?

    It seems as if it has not been working for years, based on some of the old posts!

    Was this answer helpful?

    0 comments No comments