G
Guest
I am running the following code to open Microsoft word, and get a run time
error 52. This code works fine on Word 2003, however when used on another
computer to open Word 2002 it gives me the error (I adjust the path name to
OFFICE10 when going to 2002. I have loaded patches, but these haven't fixed
the problem.
How do I get it to work?
Private Sub Option2_Click()
On Error GoTo Err_Option2_Click
DoCmd.SetWarnings False
DoCmd.OpenQuery "KS_BoxLabels_QMT", acViewNormal, acEdit
Call Shell("C:\Program Files\Microsoft Office\OFFICE11\winword.exe", 1)
DoCmd.SetWarnings True
Exit_Option2_Click:
Exit Sub
Err_Option2_Click:
MsgBox Err.Description
Resume Exit_Option2_Click
End Sub
error 52. This code works fine on Word 2003, however when used on another
computer to open Word 2002 it gives me the error (I adjust the path name to
OFFICE10 when going to 2002. I have loaded patches, but these haven't fixed
the problem.
How do I get it to work?
Private Sub Option2_Click()
On Error GoTo Err_Option2_Click
DoCmd.SetWarnings False
DoCmd.OpenQuery "KS_BoxLabels_QMT", acViewNormal, acEdit
Call Shell("C:\Program Files\Microsoft Office\OFFICE11\winword.exe", 1)
DoCmd.SetWarnings True
Exit_Option2_Click:
Exit Sub
Err_Option2_Click:
MsgBox Err.Description
Resume Exit_Option2_Click
End Sub