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 April 25th, 2009, 11:22 AM
Authorized User
 
Join Date: Apr 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default open excel object stored in access

Hi,
I have an Access table which consists of different fields, one of them is reserved to store objects. Currently, I am using this specific field to store excel spreadsheets.
I built a form on the top of this table to display all the fields. One of the things that I would like to do, is to display the excel field as a link, if a user chooses to open the spreadsheet related to a specific record, then he/she will have to click on the link and open the supporting report.

Is there anyway to do this?

Please let me know.

Thanks
Subhanak
 
Old May 6th, 2009, 08:46 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

Instead of one of the fields to store an object, i.e. the Excel field, why not just have it store a text field? The text in question would simply be a file path and file name of the XLS file on the network drive.

In your code, you'd simply click a button next to the file name and use the Application.FollowHyperlink method to open the Excel spreadsheet. This approach would also shrink your MDB size because storing the file names takes up less space than storing the XLS objects.
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I open access DB stored in CD from VB Andraw Pro VB Databases 1 August 14th, 2008 10:05 AM
Using stored procedure to open Access reports jack123 SQL Server 2000 1 July 19th, 2007 08:37 PM
Open an Excel file using Access, pls help! sunny76 Access VBA 9 June 29th, 2005 02:14 AM
How to open Excel File in Access losartan Access 1 January 24th, 2005 06:08 PM
Open Access report object in ASP eapsokha Classic ASP Databases 2 March 31st, 2004 11:26 PM





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