[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Convert a string value in a Query to a hyperlink

Posted on 2008-10-10
5
Medium Priority
?
943 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

Independent Software Vendors: 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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

649 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