Set cnn = CreateObject("ADODB.Connection") '创建数据库连接
cnn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & App.Path & "\钢网库.accdb;Jet OLEDB:database password=123456"
SQL = "insert into 钢网清单(钢网ID,生产厂家,制作日期,钢网厚度,累计使用,上次张力,所在孔位,钢网型号) values('" & a1 & "','" & a2 & "','" & a3 & "','" & a4 & "','" & a5 & "','" & a6 & "','" & a7 & "','" & a8 & "')"
cnn.Execute SQL
cnn.Close
Set cnn = Nothing