Solved

Convert a string value in a Query to a hyperlink

Posted on 2008-10-10
5
933 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
[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
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

695 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