M
Matthew B
Hi,
Recently I upgraded from Win98/Off97 to WinXP/Off2003 as a
result an Access Database App that previously worked fine
now fails to run its MailMerge function correctly, and
fails with the error "error 4605: this method or property
is not available because it is not a mail merge main document".
The code appears to execute fine up to the following
portion of code, and drops out to err_ShowWord at the
..Execute method
**********************
'
' Show the word document
'
Sub ShowWord()
Dim MyMerge As Object
On Error GoTo err_ShowWord
oaword.Application.Visible = True
Set MyMerge = oaword.ActiveDocument.MailMerge
With MyMerge
.Execute
End With
Exit Sub
err_ShowWord:
MsgBox "Error number " & Err.Number & ": " &
Err.Description
MsgBox "Word Error! Unable to show Word"
End Sub
**********************
The Database has been converted to 2003, as has the .dot
file in question.
I have checked for Security Settings (Macro) and various
other anomalies, but have been greeted with no joy.
If more snippets of code is required for analysis let me
know and I'll paste it in - the app is not huge, only 257
line in total..
Any ideas or sugestions would be greatly appreciated.
Regards,
Matty.
Recently I upgraded from Win98/Off97 to WinXP/Off2003 as a
result an Access Database App that previously worked fine
now fails to run its MailMerge function correctly, and
fails with the error "error 4605: this method or property
is not available because it is not a mail merge main document".
The code appears to execute fine up to the following
portion of code, and drops out to err_ShowWord at the
..Execute method
**********************
'
' Show the word document
'
Sub ShowWord()
Dim MyMerge As Object
On Error GoTo err_ShowWord
oaword.Application.Visible = True
Set MyMerge = oaword.ActiveDocument.MailMerge
With MyMerge
.Execute
End With
Exit Sub
err_ShowWord:
MsgBox "Error number " & Err.Number & ": " &
Err.Description
MsgBox "Word Error! Unable to show Word"
End Sub
**********************
The Database has been converted to 2003, as has the .dot
file in question.
I have checked for Security Settings (Macro) and various
other anomalies, but have been greeted with no joy.
If more snippets of code is required for analysis let me
know and I'll paste it in - the app is not huge, only 257
line in total..
Any ideas or sugestions would be greatly appreciated.
Regards,
Matty.