Good thing SOMEONE is checking her work :-)
Barbara
>Sorry, Richard
>I should have checked that answer. You need to build the whole command string, AFAIK.
>
>
>LOCAL lcCommand
>lcCommand = "! /N c:\winnt\notepad.exe" + " " + docs.file_name
>&lcCommand
>
>
>Good point, Barbara, but that doesn't work, either. Unfortunately I shoulda checked it first.
>>Or you may have to set a variable to eval(docs.file_name) and use the variable.
>>
>>>This should work:
>>>
>>>
! /N c:\winnt\notepad.exe (docs.file_name)
>>>
>>>>I have stored a complete file path in a field called docs.file_name. If I want to open the file stored in docs.file_name with notepad, what code would accomplish this?
>>>>
>>>>! /N c:\winnt\notepad.exe ????????????????