Microsoft
Software
Hardware
Network
Question : Trusted Location Error Message "2001"
This problem must be one of the easiest to solve, but I have spent a long time on this and still cannot see where I have gone wrong!
I have written an export procedure for my database. However, when the procedure is run WITHOUT adding the database name and directory path to the "trusted locations", I receive a security warning. When the "cancel" button is pressed I get the runtime error 2001.
I have added the following error trapping routine (which for my purposes is really only an informative message to the end user), but although it stops the runtime error message appearing it does not display my message (I have an "On Error GoTo" statement at the beginning of my procedure:
cmdTrustedLocation_Err:
DoCmd.Hourglass False
DoCmd.SetWarnings True
If Err.Number = 2001 Then
Msg = "This message is being displayed because you have not added the directory name to the TRUSTED LOCATIONS and it has caused a security breach. Please add the database name and then try the export again."
Else
MsgBox Err.Description
End If
ps: the database is being used in several locations as a "stand-a-lone" application for the time being.
Thanks for all your help in advance.
Attachments:
27-07-2010-11-31-53.png
(16 KB)
(File Type Details)
Security Warning Message
Answer : Trusted Location Error Message "2001"
You have a span used for margin, you need a block for doing this. Try adding:
display:block;
Or use a div instead of span
Random Solutions
Windows Application User Login VB to SQL express
BindingList(Of T) generate exception when replacing items
object reference not set to an instance of an object
Using the COUNT function??
Blur/Shadow Text
Differences between full versions and "Click-to-Run" versions of MS Office
Change the default image on a Windows Forms app in VB.NET
Robocopy - How do i copy images from one directory structure to a single folder?
T-SQL - Grouped query that concatenats one field with text for several rows with same ID
!!CRITICAL ERROR: Memory retention failure, unflushed cache lost!!!