Sub AppendRecordsSQL()
Dim db As DAO.Database, strSQL As String
'Return reference to current database - this is required - CurrentDb won't work here
Set db = CurrentDb
'define the SQL
strSQL = "INSERT INTO tblData ( StartDate, EndDate, NCheck )" & _
" SELECT tblImport.StartDate, tblImport.EndDate, tblImport.NCheck" & _
" FROM tblImport;"
'run the append statement
db.Execute strSQL, dbFailOnError
MsgBox db.RecordsAffected & " records have been appended to table tblData", vbInformation, "Append Query completed"
Set db = Nothing
End Sub