Chris,
True, but the idea is for the user to select a file from a system-dialog. I then store that filename in the database for use later. If the user ever double clicks on the filename I want to autoload the application and the file.
The only way I can use double quotes is if I hardcode the file name into the program, I can't do, for example:
find last document NO-LOCK.
ShellExecute("open", document.doc-path).
I could do:
ShellExecute("open", "c:\james\my file.doc").
This works fine.
I think for the time being I am going to just replace all of the spaces with an underscore.
Thanks for all of your time.
James.