Const dbPath As String = "C:/Projects/TTdb.mdb"
Dim dbTT As DAO.Database
Dim strSQL As String
Dim ws As Worksheet
' Open database connection
Set dbTT = OpenDatabase(dbPath)
strSQL = "INSERT INTO Timesheet ( Date, Employee ) VALUES ( #04/21/2009# , 'Name' );"
dbTT.Execute strSQL
' Close database
dbTT.Close
Set dbTT = Nothing
|