Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to open a perticular wordpad file from ms access by vba code 1

Status
Not open for further replies.

pranay7777

Programmer
Sep 25, 2001
14
0
0
US
how to open a perticular wordpad file from ms access by vba code.
 
Use the Shell or ShellExecute functions.

Shell example:
Shell("C:\Program Files\Windows NT\Accessories\wordpad.exe C:\documents\Readme.doc")


An article and code for ShellExecute can be found at
Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
thanx. a problem solved..how can a client open a wordpad file thats on the server...??
 

You can use the same technique with a diffeerent path for the file. You should be able to use the UNC (\\server\path\file.doc). The user logon will need permissions to read the file. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top