P
Presto
Access 2003
I'm trying to eliminate unnecessary network traffic, and stop a warning
screen from popping up.
(Multiple users scenario)
I need to copy a database file from a network location to a local folder,
then run the local copy.
I accomplish this with a desktop shortcut to a "dummy.mdb" with the
following code on the startup form. After the code runs, the dummy.mdb
closes :
----------------------------------------------
Private Sub Form_Load()
' This copies the db from the network location and saves it locally, then
runs the local copy.
' After all that, this file will close - it takes about 2-4 seconds.
DoCmd.SetWarnings False
FileCopy "\\networkpath\mydatabase.mdb", "C:\data\mydatabase.mdb"
Application.FollowHyperlink "C:\data\mydatabase.mdb"
DoCmd.SetWarnings True
DoCmd.Quit
End Sub
-----------------------------------------------
This code works perfectly, *BUT* for the annoying message from Bill G...:
" Hyperlinks can be harmful to your computer and data. To protect you
computer, click only those hyperlinks from trusted sources. Do you want to
continue?" Yes/No. After clicking Yes, everything works like I want it
to.
I tried setting the macro security to low, and as you can see above, I tried
turning off the warnings, but that doesn't seem to make a difference. I
can't have 100 people calling Tech Services crying about this silly error.
Also, I would also like to know how to deal with network issues. If the
network path is not available, then just run the local copy if it already
exists.(Day old data is much better than no data to work with)
Any life saving suggestions out there??
Thanks in advance,
Presto.
I'm trying to eliminate unnecessary network traffic, and stop a warning
screen from popping up.
(Multiple users scenario)
I need to copy a database file from a network location to a local folder,
then run the local copy.
I accomplish this with a desktop shortcut to a "dummy.mdb" with the
following code on the startup form. After the code runs, the dummy.mdb
closes :
----------------------------------------------
Private Sub Form_Load()
' This copies the db from the network location and saves it locally, then
runs the local copy.
' After all that, this file will close - it takes about 2-4 seconds.
DoCmd.SetWarnings False
FileCopy "\\networkpath\mydatabase.mdb", "C:\data\mydatabase.mdb"
Application.FollowHyperlink "C:\data\mydatabase.mdb"
DoCmd.SetWarnings True
DoCmd.Quit
End Sub
-----------------------------------------------
This code works perfectly, *BUT* for the annoying message from Bill G...:
" Hyperlinks can be harmful to your computer and data. To protect you
computer, click only those hyperlinks from trusted sources. Do you want to
continue?" Yes/No. After clicking Yes, everything works like I want it
to.
I tried setting the macro security to low, and as you can see above, I tried
turning off the warnings, but that doesn't seem to make a difference. I
can't have 100 people calling Tech Services crying about this silly error.
Also, I would also like to know how to deal with network issues. If the
network path is not available, then just run the local copy if it already
exists.(Day old data is much better than no data to work with)
Any life saving suggestions out there??
Thanks in advance,
Presto.