A family of Microsoft relational database management systems designed for ease of use.
ciao Koshala,
try to insert the specific bookmark in word file, revising your routine in this way :
Option Compare Database
Option Explicit
Private Sub Comando37_Click()
Call fillwordform
End Sub
Private Sub fillwordform()
Dim appword As Object 'Word.Application
Dim doc As Object 'Word.Document
Dim fPath As String
On Error Resume Next
Set appword = GetObject(, "Word.Application")
Error.Clear
If Err.Number <> 0 Then
Set appword = CreateObject("Word.Application")
End If
appword.Visible = True
fPath = ""C:\Users\koshala.arachchige\Desktop\Koshala.doc"
Set doc = appword.Documents.Open(fPath)
appword.Activate
With doc
.Bookmarks("yourBookMarksName").Select
.Application.Selection.Insertafter Me.LastName
'.FormFields("txtLastName").Result = Me.LastName
End With
Set doc = Nothing
Set appword = Nothing
End Sub