Solved

Open access using a command line exclusive as a hyperlink

Posted on 2011-03-23
7
365 Views
Last Modified: 2012-05-11
I am using Microsoft Expression Web 3 and Access 2003, 2007.  I am opening a database from a page with a hyperlink with the path of the database.   I want to open the database exclusively but it does not allow the /excl paramater.  

e.g.  c:\database.mdb

I have tried using a batch file but it opens the batch file in edit mode from the web page.  The batch file will work when I double click on it from explorer.

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" c:\database.mdb /excl    
0
Comment
Question by:cc22
  • 4
  • 3
7 Comments
 
LVL 2

Expert Comment

by:IT-Factory
ID: 35200112
execute as """c:\database.mdb""" /excl

watch the "
0
 

Author Comment

by:cc22
ID: 35200185
This is the actual address on the hyperlink page:  file:///c:/database.MDB

Where do I put the quotes?
0
 
LVL 2

Expert Comment

by:IT-Factory
ID: 35200253
use a cmd file

in database.cmd put c:\database.mdb /excl

then start file://c:\database.cmd
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Comment

by:cc22
ID: 35200645
file:/o:/cognos/batch/quotes.cmd  - opens command file in edit mode

command file executes when I double click on it

o:\cognos\corporate\database\custquotes.mdb /excl  

0
 
LVL 2

Expert Comment

by:IT-Factory
ID: 35201375
why do you want to use the link via the address bar? Is a button on a html page also ok?
0
 
LVL 2

Accepted Solution

by:
IT-Factory earned 500 total points
ID: 35201386
does this help?

<html>
<input type=button value="Open Quotes" onclick="launch('o:\cognos\corporate\database\custquotes.mdb /excl')">
</HTML>
<script language="Javascript">
function launch(sApp) {
window.open(sApp,...)
}
</script>
0
 

Author Comment

by:cc22
ID: 35201394
A button is o.k.  I am using it in a menu that I have that is also linking to excel reports.  When I do I search for the database it put the prefix 'FILE:' in front of the database.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

733 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