I searched for posts about returning the focus on the Access window after opening a word doc but I can't seem to find one. I tried this but it doesn't seem to work.
my code would be something like:
CODE
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Add(strFilePath & strFileName)
objWord.Visible = True
[color="red"]'Missing line : Return focus to Access window [/color]
DoCmd.SelectObject acReport, strDocName
Set objDoc = objWord.Documents.Add(strFilePath & strFileName)
objWord.Visible = True
[color="red"]'Missing line : Return focus to Access window [/color]
DoCmd.SelectObject acReport, strDocName
Any idea ?