J
Joanne
I am trying to set bookmarks in my word docs automating from access
using office 2000 on winxp
If a particular bookmark has no value on the form, the code stops
running, so I am trying to use an if then else statement to tell the
code if there is no value, just skip it and go to the next bookmark.
This is the code I am using but it doesn't do the job
If oWordapp.ActiveDocument.Bookmarks.Exists("Street2") = True Then
If oWordapp.ActiveDocument.Bookmarks Is Not Null Then
.Item("Street2").Range.Text = Me!Street2
Else
End If
End If
Could you look at this please and advise me where I am going wrong?
TIA
using office 2000 on winxp
If a particular bookmark has no value on the form, the code stops
running, so I am trying to use an if then else statement to tell the
code if there is no value, just skip it and go to the next bookmark.
This is the code I am using but it doesn't do the job
If oWordapp.ActiveDocument.Bookmarks.Exists("Street2") = True Then
If oWordapp.ActiveDocument.Bookmarks Is Not Null Then
.Item("Street2").Range.Text = Me!Street2
Else
End If
End If
Could you look at this please and advise me where I am going wrong?
TIA