Hi, there.
You can establish connection with database from word document and add new record to a table via recordset or SQL command.
yup... thx for your help.
i'm still wondering, how this SQL statement is writen into my macro.. please correct my macro below ( because every time i try it.... pop up error always occur )
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim strPath As String
Dim Doc As Document
Set Doc = ThisDocument
strSQL = "INSERT INTO TPath ( Nama, Path, Keterangan ) VALUES (Tes3, TesPath3, KeteranganPath3)"
strPath = "C:/Access/myDB.mdb"
'Update path to database file.
Set db = OpenDatabase(strPath)
Set rst = db.OpenRecordset(strSQL)
Set db = Nothing
Set rst = Nothing
=================================
this day... i know (maybe) the problem is "set rst = db.OpenRecordset(strSQL)"
... so i change it to "set rst = db.Execute(strSQL)"
but the error is still occured... can u help me, please ?