Solved

hyperlinks

Posted on 2011-03-07
5
348 Views
Last Modified: 2012-05-11
Is there any way to link to files that have # number sign embedded into the filename
0
Comment
Question by:centralmike
[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
5 Comments
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 250 total points
ID: 35056546
You may try to use the Hyperlink Data Type of your field.

And on the GotFocus Event of that field in a form, place this code.

DoCmd.RunCommand acCmdEditHyperlink

Sincerely,
Ed
0
 
LVL 6

Expert Comment

by:TMWSIY
ID: 35056612
Are you using c#?  Try escaping the pound sign with a \
0
 

Author Comment

by:centralmike
ID: 35057540
I am use VBA IN ACCESS 2007

 Dim straddress As Variant

 straddress = HyperlinkPart(Forms!frmPolicydocuments!lstPDF.Column(1))
 Debug.Print straddress
 Application.FollowHyperlink LTrim(straddress), , True
THE LIST BOX CONTAINS THE FILE NAME. But some of the filenames have the # sign in them and access throws an error message "490" can not open the specified file.
0
 
LVL 6

Assisted Solution

by:TMWSIY
TMWSIY earned 250 total points
ID: 35057556
0
 
LVL 6

Expert Comment

by:TMWSIY
ID: 35057584
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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