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
Solved

Convert a string value in a Query to a hyperlink

Posted on 2008-10-10
5
926 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

856 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