M
MSU Sptn2
I have written code in Access to insert text from a form in Access to a
bookmark in Word. I would like to reference the bookmark later in the Word
document using a reference field, but it seems the bookmark is deleted after
the text is inserted. I am using the following code for each bookmark name
in the document:
.ActiveDocument.Bookmarks("PIC").Select
If [Form_ODDAPP FORM].PIC <> 1 Then
.Selection.Text = (CStr([Form_ODDAPP FORM].PIC))
Else
.Selection.Text = .Selection.Text & (CStr(""))
End If
Any ideas on how to recreate the bookmark containing the inserted text?
Thanks.
bookmark in Word. I would like to reference the bookmark later in the Word
document using a reference field, but it seems the bookmark is deleted after
the text is inserted. I am using the following code for each bookmark name
in the document:
.ActiveDocument.Bookmarks("PIC").Select
If [Form_ODDAPP FORM].PIC <> 1 Then
.Selection.Text = (CStr([Form_ODDAPP FORM].PIC))
Else
.Selection.Text = .Selection.Text & (CStr(""))
End If
Any ideas on how to recreate the bookmark containing the inserted text?
Thanks.