rerailer said:
I want to create a shortcut to the desktop for a switchboard. I want only
the switchboard, and not the entire access program pane to open when I
click
this shortcut. How do I do this?
I tried posting this a couple of days ago with no success. Sorry if this
gets double posted.
Here is one trick I use. It opens up an Access form into which I enter
criteria for a query (Query-by-form), prints my report, and exits Access.
Create a Sub or Function like this in your Access database:
Sub OpenMyForm
DoCmd.OpenForm "frm_AnyForm", acNormal, , , , acDialog
End Sub
Create a VBScript file containing the following:
Set AccApp = CreateObject("Access.Application")
loc = "C:\Documents and settings\DB1.mdb" 'put path to your
database here
AccApp.OpenCurrentDatabase loc
AccApp.Run "OpenMyForm"
AccApp.CloseCurrentDatabase
AccApp.Quit
Set AccApp = nothing
Create a shortcut to this script on your desktop. It will open just the
form, which will stay open until you close it because it is a dialog box,
with Access running hidden. When you close the form, Access will close.
I don't know how well this will work with a switchboard.
Dave
66 Fox