1 Private Sub cmdGo_Click()
2 If MsgBox("是否重新导入?", vbYesNo, "导入") = vbYes Then
3 DoCmd.SetWarnings False
4 DoCmd.RunSQL "DELETE * FROM Item;"
5 DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "Item", _ Me.foldername.Value,False, "A1:B65536"
6 DoCmd.SetWarnings True
7 End If
8 End Sub