Dim dbs As Database
Dim strSQL as String
Set dbs = CurrentDb
strSQL = "[Enter the SQL from your query here]"
dbs.Execute strSQL
Sub appnd()
Dim db As DAO.Database, rs As DAO.Recordset
Set db = DBEngine(0)(0)
Set rs = db.OpenRecordset("TblTrackInfo", dbOpenTable)
With rs
.AddNew
.Fields(0) = "Test1"
.Fields(1) = "Test2"
.Fields(2) = "Test3"
.Update
.Close
End With
Set db = Nothing: Set rs = Nothing
End Sub
Sub Remy()
Dim db As DAO.Database, rs As DAO.Recordset
Set db = DBEngine(0)(0)
Set rs = db.OpenRecordset("TblTrackInfo", dbOpenTable)
With rs
.MoveLast
.Delete
.Close
End With
Set db = Nothing: Set rs = Nothing
End Sub