Solved

Convert a string value in a Query to a hyperlink

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now