Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2005, 04:02 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open database via a shortcut with arguments

Dear All,

I want to open an access database via a shortcut, that will be sent in an email. I would like to pass an argument into the application which could be used by the start-up form to select a particular record to display.

Is this possible? I know I can choose which form/page to display on start-up but is there any way to send arguments, something akin to the way you can pass information in a URLs query string.

Any suggestions appreciated.
 
Old June 23rd, 2005, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Welcome to P2P. You're talking about something akin to an argument in DOS, i.e.

C:\Program Files\Microsoft Office\Office10\msaccess.exe myfile.mdb %1

Where the %1 will be read by myfile.mdb when it opens. Then based on %1, the mdb will open one form or another. Right?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old June 23rd, 2005, 12:48 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I think so. I'd like to create the shortcut in advance and then be able to link to the shortcut and pass the argument value allow with the shortcut address?

Then once Access opens be able to read this argument as a variable for my form.

My ultimate goal is to create a textual link to a shortcut or the location of the mdb file, in an email, which will also specify the record I wish the initial form to open in Access.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please HELP!!! Cannot open database "ASPState" thuyvncr BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 March 15th, 2007 09:31 PM
Can We open database in different server? por Classic ASP Basics 0 December 18th, 2005 09:25 PM
Cannot open database with password saikrishnan Pro VB Databases 0 August 26th, 2005 01:47 AM
Attempted to open a database that is already open person747 Access 10 September 3rd, 2004 04:31 PM
error trying to open a database Boomer ASP.NET 1.0 and 1.1 Basics 2 June 22nd, 2003 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.