Open Access File from within Word 
Author Message
 Open Access File from within Word

I need a macro that I can assign to a toolbar button that
when clicked will lauch Access with a specific file open
and the Access application window maximized if at all
possible.  I'm currently using
ActiveDocument.FollowHyperlink Address:= "D:\mydata.mdb"
because I don't know of a better way to open another
file\app.  This is opening the file but not maximizing the
window.  Any other (better) suggestions for opening the
file and getting it to maximize??  I need this to work in
both 97 and XP if that makes a difference.  Thanks.


Sun, 21 Aug 2005 06:42:51 GMT  
 Open Access File from within Word
Hi Kevin,

Take a look at the SHELL function in the general Office VBA
Help.

Quote:
> I need a macro that I can assign to a toolbar button that
> when clicked will lauch Access with a specific file open
> and the Access application window maximized if at all
> possible.  I'm currently using
> ActiveDocument.FollowHyperlink Address:= "D:\mydata.mdb"
> because I don't know of a better way to open another
> file\app.  This is opening the file but not maximizing the
> window.  Any other (better) suggestions for opening the
> file and getting it to maximize??

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)



Thu, 25 Aug 2005 16:35:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. opening another .mdb file within access

2. Can I open a specific Excel file from within Access

3. Open different database file within Access using code

4. Cannot access VBE from within Word: access not trusted

5. Opening a Word Doc from Access with File Name Stored in a Table

6. Starting Word from Access with File Open dialog

7. NewbieQ3: Opening a word file for read-only access

8. Opening an Excel template from within Word VBA

9. Opening an Excel template from within Word VBA

10. Opening Excel from within Word

11. Opening word from within <script=vbsript>in HTML

12. Using VBA Automation to Open Word at the File Open Locatiion

 

 
Powered by phpBB® Forum Software