I'm trying to shell a word document from Access VBA, passing the path to the document in the command line. My problem is that some of the paths that are passed have spaces in them, and when you use command line parameters in this way it interprets a space as the end of the command line and thus fails to open the document. I've tried writing code to URLEncode it myself, but it doesn't like this. I've tried shelling Internet Explorer with the path in the command line, but this gives me file not found. Does anyone know of any other ways that I can open a document programmatically from Access VBA?