Solved

Shortcut or Hyperlink to Access Form

Posted on 2011-09-07
5
399 Views
Last Modified: 2012-06-27
Is it possible to create a shortcut or hyperlink that opens a database and then opens a specific form?
0
Comment
Question by:wellesleydpw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 14

Expert Comment

by:Bill Ross
ID: 36494827
Hi,

You can create a shortcut to the database that will open the database.  You can then open the desired form from within the database automatically in at least 2 ways.

1.  You can set the form as the start up form in the database properties.  
2.  You can create a macro that opens the form and name the macro AutoExec.  This is my preference as you can add additional actions to the macro.

Regards,

Bill
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 36494851
If you want it as an hyperlink you only need to add a link to any website with the relative path to the .mdb file, on clicking the link, the browser will ask user to download or open the file, if the client computer has access installed it will take control of the petition if "open" is selected and the database witll open (following BillDenver answer you'll be able to do your desired form to open by default).
0
 
LVL 14

Expert Comment

by:luconsta
ID: 36495097
Or, a 3rd way for BillDenver suggestions - in the case that his suggestions are not aplicable foe example you want to open another form than the one opened automatically at database open or by "AutoExec":

You could use the MS Access command line switches in that link (for more details see Command-line switches for Access so you could run directly a macro in that database that will open the desired form using this command:

msaccess.exe "c:\MyFolder\MyDatabase.accdb" /x MyOpenFormMacro

The "/x" switch will do the "trick" required to execute directly the macro needed for your "form opening".
0
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
ID: 36500347
If you are asking how to create a Windows shortcut to an Access object like a form then yes it is possible. It is a little known feature of Access.

See:
Create a shortcut to open an Access file or database object


0
 

Author Closing Comment

by:wellesleydpw
ID: 36504893
That's exactly what I needed.
I had to quickly look for how to do it in Access 2007 and found it here:
http://office.microsoft.com/en-us/access-help/open-an-existing-database-HA010016347.aspx

Thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question