Here's the excel vba to export to the database:
Code:
Sub UpdateDB()
Dim db As Database
Dim rs As Recordset
Dim currID As Double
Dim currTech As String
Dim currTK As Single
Dim currVC As Single
Dim currWC As Single
Dim currDoc As Single
Application.Workbooks("temp_" & Format(Date, "mm_dd_yyyy")).Activate
Set db = OpenDatabase(DBpath)
Set rs = db.OpenRecordset("KPI", dbOpenTable)
Set MS = ThisWorkbook.Worksheets("Main")
currID = MS.OLEObjects("cmb_Tech").Object.List(MS.OLEObjects("cmb_Tech").Object.ListIndex, 1)
currTech = MS.OLEObjects("cmb_Tech").Object.List(MS.OLEObjects("cmb_Tech").Object.ListIndex, 0)
currTK = MS.OLEObjects("txt_TK").Object.Value
currVC = MS.OLEObjects("txt_VC").Object.Value
currWC = MS.OLEObjects("txt_WC").Object.Value
currDoc = MS.OLEObjects("txt_Doc").Object.Value
With rs
.AddNew
.Fields("ID") = currID
.Fields("Tech Name") = currTech
.Fields("Date Entered") = Date
.Fields("Technical Knowledge") = currTK
.Fields("Verbal Communication") = currVC
.Fields("Written Communication") = currWC
.Fields("Documentation") = currDoc
.Update
rs.Close
Set rs = Nothing
db.Close
Set db = Nothing
End With
End Sub