CODE
rst1.Open "[qryLoc_SubLoc]", , adOpenKeyset, adLockOptimistic, adCmdTable
If rst1.EOF And rst1.BOF Then
MsgBox "No Location details to transfer.", , "No Records"
End
Else
basicModule.ActiveDocument.Bookmarks.item("Location_SubLocation").Select
[color="#FF0000"][b]basicModule.ActiveDocument.Selection.TypeText[/b][/color]
End If
rst1.Close
Set rst1 = Nothing
If rst1.EOF And rst1.BOF Then
MsgBox "No Location details to transfer.", , "No Records"
End
Else
basicModule.ActiveDocument.Bookmarks.item("Location_SubLocation").Select
[color="#FF0000"][b]basicModule.ActiveDocument.Selection.TypeText[/b][/color]
End If
rst1.Close
Set rst1 = Nothing
---------------------------------------------------------------------------------------------------
EDIT: I left the tagging in the code block, just so you could still see the problem child
---------------------------------------------------------------------------------------------------
Thank you very much!!
Regards,
Keith
