Solved

Convert a string value in a Query to a hyperlink

Posted on 2008-10-10
5
928 Views
Last Modified: 2013-11-27
I am attempting to create a function that will convert a record id in a query to display a hyper link value.

Not sure if this can be done.  What would be the correct syntax to change the RecId in the query that will inturn be exported to an HTML output.

Would the newly created hyper link remain a link once outputed to the HTML file?

Would I have to create a table first for the hyperlink to remain?

K
Public Const strLink = "\\path1\path2\EmergentWk\EmergentWork.mdb"
 
Function HLink(nseq As String)ss hyperlink
    gFP = strLink & "/cmdID= " & gID & ""
    HLink = gFP
End Function

Open in new window

0
Comment
Question by:Karen Schaefer
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:calpurnia
ID: 22688627
What do you mean by "exported to a HTML output"?
0
 

Author Comment

by:Karen Schaefer
ID: 22688651
I am creating a query that will be using as either the body of an email or as a HTML attachment.

I  would like to include a hyperlink value of the record ID so that when the user clicks the link the user will be directed back to the database and its record.  I found code that will allow the Command() function to read this hyperlink, however, I first must convert the RecordID to the correct file path.

K
0
 
LVL 10

Expert Comment

by:calpurnia
ID: 22691611
Is this database a web database - or is the link purely for use within a single network?
0
 

Accepted Solution

by:
Karen Schaefer earned 0 total points
ID: 22694162
single network - I am currently sending the html file as an attachment - so I would like to either create a link back to the database with record id or include the data within the actual email body with the link back to the database w/record id..

I know I might be asking alot from the system.  I was able to store the hyperlink in a table but it doesn't store the value of the recordid like I want - when I click on the hyperlink Iit opens another page (Url) but does not open Access or even the database.

any more ideas or should I just abandon this approach and leave it to just a link to the database with the attached list?
K
0
 
LVL 10

Expert Comment

by:calpurnia
ID: 22695604
No more ideas, I'm afraid - what you're actually trying to do is quite different from what I thought you wanted to do when I first read the question, and it's not an subject I feel able to usefully comment on.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

679 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