Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prohibiting Shortcuts from being Created

Status
Not open for further replies.

SuzanneBBI

Programmer
May 3, 2001
5
US
This isn't truly an Access question....but...how can I prohibit users from creating shortcuts of databases that are on shared drives? They think they know how to do it, but wind up putting actual copies on their desktops. You can imagine the grief this causes!! Any ideas?
 
First, search and destroy all desktop copies.

Then, in your autoexec macro, add a run code statement that points to a global module.

In the module, type something like

Public Sub CheckRemote()
Dim dbsCurrent As Database
Set dbs = CurrentDb
If dbs.Name <> &quot;your remote database path and file&quot; Then
MsgBox &quot;Please see IT for instructions on how to properly create a shortcut !!&quot;
DoCmd.Quit
Else
End If

End Sub Tyrone Lumley
augerinn@gte.net
 
DatabaseGuy: THANKS so much! I will give this a shot later today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top