View Single Post
  #1 (permalink)  
Old November 10th, 2003, 05:33 PM
SerranoG SerranoG is offline
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
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 Shell Function Question

I can successfully use the SHELL function to open a Word XP document from Access XP. There used to be a switch in Word '97 (/r) that would force the document to open Read-Only. Word XP doesn't seem to have this switch. Is there another way to do it? Here is the line of code that works, but needs a switch after the "EXE":
Code:
dblRetVal = Shell("C:\Program Files\Microsoft Office\Office10\WINWORD.EXE " & strWordCondDoc, 3)

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
Reply With Quote