The following code worked in Access 2007 but in recent install of 2010 there is a compile error which highlights the Chr(34) function.
Dim path As String
Dim dir As String
Dim wdpath As String
dir = MFunctions.ReadFile("CL_FileDir.txt")
path = "C:\" & dir & "\" & fn & ".docx"
wdpath = "WinWord.exe" & " " & Chr(34) & path & Chr(34)
Shell wdpath, vbNormalFocus
I have not been able to find a solution.