opening a text file file from access

M

ms shakeel

hello sir,

thanks in advance for help
the following pice of code is not working
-----------------------------------------------------
Dim x
YourFileName = "hello"
x = Shell("c:\windows\notepad.exe c:\YourFileName.txt",
vbNormalFocus)
-----------------------------------------------------
with the above code,the text file with name hello.txt does
not open.

also sir i should be able to text file hello.txt placed at
any filepath, That is--opening of the text
file "hello.txt" should be independent of the
file path--> where the text file "hello.txt" is residing.

plz help me
thanking you
shakeel
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top