Solved

hyperlinks

Posted on 2011-03-07
5
338 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
This collection of functions covers all the normal rounding methods of just about any numeric value.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

910 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

22 Experts available now in Live!

Get 1:1 Help Now