J
James
Using Access 2000
I have used this code in other apps, but I am getting a Compile Error
in this new one.
Error is "Qualifier must be collection".
Code is:
Private Sub Command12_click()
' start Microsoft Word.
Set wordApp = CreateObject("Word.Application")
With wordApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open ("C:\DataLetters\NoticeToProceed.doc")
' Move to each bookmark and insert text from the form.
.ActiveDocument.Bookmarks("To").Select
.Selection.Text = (CStr(forms!NoticeToProceed!To))
.ActiveDocument.Bookmarks("From").Select
.Selection.Text = (CStr(forms!NoticeToProceed!From))
.......
And I get the error on the first .Selection.Text line where
!NoticeToProceed! is highlighted.
Any help greatly appreciated.
Thanks,
James
I have used this code in other apps, but I am getting a Compile Error
in this new one.
Error is "Qualifier must be collection".
Code is:
Private Sub Command12_click()
' start Microsoft Word.
Set wordApp = CreateObject("Word.Application")
With wordApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open ("C:\DataLetters\NoticeToProceed.doc")
' Move to each bookmark and insert text from the form.
.ActiveDocument.Bookmarks("To").Select
.Selection.Text = (CStr(forms!NoticeToProceed!To))
.ActiveDocument.Bookmarks("From").Select
.Selection.Text = (CStr(forms!NoticeToProceed!From))
.......
And I get the error on the first .Selection.Text line where
!NoticeToProceed! is highlighted.
Any help greatly appreciated.
Thanks,
James