PC Review


Reply
Thread Tools Rate Thread

close txt file opened as hyperlink

 
 
abs
Guest
Posts: n/a
 
      18th Feb 2009
User would like to display a text file by clicking on the file name on a
form.(Set this up as a hyper link - it opens the text file in Notepad) They
may open several files at the same time. When they are finished on the form
with the list of files, they would like to close the form and have all the
text files closed also. Have been able to display without problem, but cannot
automatically close everything when the form is closed.
 
Reply With Quote
 
 
 
 
dymondjack
Guest
Posts: n/a
 
      18th Feb 2009
This gets a little deep, but here's a place to start:

http://mvps.org/access/api/api0025.htm

This API will close the application that's referenced. Although,
referencing the application is going to take yet another API (see the link in
the top of the link I posted). I've never used either of these two (the
stuff on Dev's site is extremely reliable, I just don't have any experiance
with this one in particular).

I'm not quite sure how you would handle multiple instances of it though.
Look around on mvps.org... its a great resource for this type of stuff.

It's not exactly an answer, but its a direction at least. You're dealing
with the operating system functions at this point, not access, so be wary.

Good luck!
--
Jack Leach
www.tristatemachine.com

- "First, get your information. Then, you can distort it at your leisure."
- Mark Twain


"abs" wrote:

> User would like to display a text file by clicking on the file name on a
> form.(Set this up as a hyper link - it opens the text file in Notepad) They
> may open several files at the same time. When they are finished on the form
> with the list of files, they would like to close the form and have all the
> text files closed also. Have been able to display without problem, but cannot
> automatically close everything when the form is closed.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: XL file opened using automation - how close? Jacob Skaria Microsoft Excel Programming 2 27th May 2010 10:16 PM
RE: XL file opened using automation - how close? Jacob Skaria Microsoft Excel Programming 0 27th May 2010 09:32 PM
How do you attach a file to a hyperlink so that it cab be opened... =?Utf-8?B?Umlja0w=?= Microsoft Dot NET 1 28th May 2004 02:29 PM
How do you attach a file to a hyperlink so that it cab be opened... =?Utf-8?B?Umlja0w=?= Microsoft ASP .NET 1 28th May 2004 02:29 PM
Saving a file opened via a hyperlink John Microsoft Excel Discussion 0 13th Nov 2003 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 PM.