Access 2002 (XP) VBA The methods .open and .close in Access VBA: can you omit the .doc when giving these a filname to open/close? EG:
wordapp.documents.open "myword"
rather than
wordapp.documents.open "myword.doc"
...same for .close
I ask because the application now has to work with Office Word 2007, which gets confused beteween .sdoc and .docx Word documents and keeps aksing to turn .doc files into .docx. So if I don't specify either in my VBA, it should matter any more whether the files are .doc or .docx.
Access vba has nothing to do with it - the Open method you're calling belongs to the Word application you've instantiated as 'wordapp'. The open method requires that you provide a file name and in windows that includes the extension. You can also specify the Path if you don't want that to default. C:\MyWord.doc and C:\MyWord.docx are two different files in the Windows file system.
Try the parameter in Word's Close method that controls the version that is saved: