A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Opening an RTF or DOC file from an Access Form command button



 
 
Thread Tools Display Modes
  #1  
Old December 24th, 2006, 07:14 PM posted to microsoft.public.access.forms
Genojoe
external usenet poster
 
Posts: 30
Default Opening an RTF or DOC file from an Access Form command button

Shell "C:\Program Files\Windows NT\Accessories\wordpad.exe
c:\temp\document.rtf", vbNormalFocus

This command opens an rtf with WordPad.

In VB.NET Process.start "c:\temp\document.rtf"
Opens the file in either Word or WordPad depending upon the mapping of the
..rtf extension.

Is there a way to accomplish the same thing as Process.Start but from Access
2003.

Shell "c:\temp\document.rtf" crashes

  #2  
Old December 24th, 2006, 07:17 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Opening an RTF or DOC file from an Access Form command button

genojoe wrote:
Shell "C:\Program Files\Windows NT\Accessories\wordpad.exe
c:\temp\document.rtf", vbNormalFocus

This command opens an rtf with WordPad.

In VB.NET Process.start "c:\temp\document.rtf"
Opens the file in either Word or WordPad depending upon the mapping
of the .rtf extension.

Is there a way to accomplish the same thing as Process.Start but from
Access 2003.

Shell "c:\temp\document.rtf" crashes


Application.FollowHyperlink "c:\temp\document.rtf"

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.