Hi Mike,
(The simplest version)
*Get and store path and filename
cPathname=GETFILE("DOC")
SELECT table
REPLACE table.pathname WITH cPathname
*Open and show it in Word
oWord=CREATEOBJECT("Word.Application")
oWord.Documents.Open(table.pathname)
oWord.Visible=.T.
>Hi to all
>i need to store the path and filename of a word document in a field
>and when click on that field to display (open)the file.
>
>does anyone know how to do this?
>
>regards
>mike
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05