Pacific Database

Home | Contact | FAQs | View Cart

A world of information at your fingertips

Creating Windows Shortcuts

This isn't something that gets frequently asked for in the newsgroups, but creating a Windows shortcut is not really all that hard to do. What is hard is creating a shortcut that's customised for Access. This function allows you to do just that, and more:

  • Specify the location of the shortcut (pretty much anywhere)
  • Specify the path to msaccess.exe
  • Specify the path to the Access database
  • Specify the path to the workgroup information file (plus login credentials)
  • Specify various command line switches, like /user, /ro, /decompile, etc
  • Specify the working location
  • Specify a custom icon
  • Specify the window type
  • Specify a custom description

The code to do this was originally written by Dave Scarmozzino (www.thescarms.com). I modified it to work specifically from Microsoft Access, using VBA.

Download the code

Download ShellLnk.tlb (required).
See the sidebar at right for more information about this file.