Solved

Access 2010; How to bypass Hyperlink security alert when clicked; Some files contain viruses.. harmful to your computer..

Posted on 2012-03-20
7
570 Views
Last Modified: 2012-03-26
I dealt with this problem in the past and it appeared to be related to an update that adobe needed. I'm now back on this problem again only with a slightly different and more aggrevating situation.

In a previous database I use the following code to open up .pdf files;
Private Sub PackSlip_Click()

Dim strLink As String

If IsNull([FileName]) Then

MsgBox "No Certification was attached to this Purchase Order or no PO's on record."

Else
strLink = [FileName]

FollowHyperlink strLink

End If

End Sub


This code opens up the .pdf files without any problems. It does not give me the prompt telling the file is potentially dangerous, etc. (screenshot below).
prompt
I'm now creating a new database and using a similar code to open up .pdf files and am getting the prompt. I've narrowed it down to the location of the file.

In my new database I'm going to C:\Users\jmeyer\Desktop\Drawings
In my old database where I don't get the prompt I'm going to one of my network drives
V:\Scan Certs

So in other words something is causing it to give that prompt whenever I go to the C drive. Does anyone know what could be causing this? FWIW- I went into the trust center settings and checked that out to be sure I haven't done anything in there. I never set up and specific locations for V:\Scan Certs but did try to setup a trusted location to C:\Users\jmeyer\Desktop\Drawings which didn't do anything.


Oh and p.s., here is the code for the new database;
Private Sub txtAssemblySeq_AfterUpdate()
Dim objFSO As Object
Dim objFolder As Object
Dim objFile As Object
Dim strLink As String
Dim varApp As Variant


Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Users\jmeyer\Desktop\Drawings")

Me.Filter = "[jaJobNum] = " & "'" & Me.txtJobNum & "'" & " and " & "[jaAssemblySeq] = " & Me.txtAssemblySeq
Me.FilterOn = True

For Each objFile In objFolder.Files
    If objFile.Name Like [jaDrawNum] & "(REV" & [jaRevisionNum] & ")" & "*" Then
    'MsgBox "C:\Users\jmeyer\Desktop\Drawings" & "\" & objFile.Name
    strLink = "V:\Scan Certs" & "\" & objFile.Name
    FollowHyperlink strLink
    End If
Next
    Set objFolder = Nothing
    Set objFile = Nothing
    Set objFSO = Nothing
End Sub



Thanks for the input!
0
Comment
Question by:SeyerIT
  • 3
  • 3
7 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
it may have to do with the UAC (user account control)
see if this link helps

http://technet.microsoft.com/en-us/library/cc709691%28v=ws.10%29.aspx#BKMK_S2

or instead of using Followhyperlink,  use shell

http://access.mvps.org/access/api/api0018.htm
0
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
Thanks Capricon.. Give me a bit to give this a try and I'll get back.
0
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
I tried to follow the instructions on the links you provided capricorn but can't seem to locate the settings they are specifying..

I also tried Shell and got the same message..
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
I would have thought that SHELL would have not triggered the error...

If this is a single user app, or all the machines have the exact same software configuration, you can try "Shelling" to the specific executable:
Something like this perhaps...

Dim varApp as Variant
varApp =Shell("C:\Documents and Settings\Adobe\Acrobat\acrord32.exe" & " " & strLink, vbnormalFocus)

Obviously this is a security setting somewhere...
I thought this was fixed in a Service Pack at some point...?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
Comment Utility
I presume you have tried this:
http://support.microsoft.com/kb/925757
0
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
Regedit did the trick! Thanks Jeff!
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
;-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

772 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

9 Experts available now in Live!

Get 1:1 Help Now