F
Froto
Here's my problem.
I am following Cheryl Fischer's 1/23/2004 post regarding
sending data from access form to word template I created.
I have the following code behind the onclick of my
command button.
Dim objWord As Object
Set objWord = New Word.Application
objWord.Documents.Add "\\Bulldog\Admin\Copy Of
Analytical Forms Database\FormID.dot"
objWord.Visible = True
If objWord.ActiveDocument.Bookmarks.Exists("Date") =
True Then
objWord.ActiveDocument.Bookmarks("date").Range.Text =
Me!Date
End If
When I click on the command button the word document
opens no data is entered on word form but the following
error shows up for the line before End If
Runtime-error 13 Type Mismatch
Any Help Thank you
I am following Cheryl Fischer's 1/23/2004 post regarding
sending data from access form to word template I created.
I have the following code behind the onclick of my
command button.
Dim objWord As Object
Set objWord = New Word.Application
objWord.Documents.Add "\\Bulldog\Admin\Copy Of
Analytical Forms Database\FormID.dot"
objWord.Visible = True
If objWord.ActiveDocument.Bookmarks.Exists("Date") =
True Then
objWord.ActiveDocument.Bookmarks("date").Range.Text =
Me!Date
End If
When I click on the command button the word document
opens no data is entered on word form but the following
error shows up for the line before End If
Runtime-error 13 Type Mismatch
Any Help Thank you