Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将单元格保存到访问而不是整个工作表中,有没有办法做到这一点?我当前的SQL查询如下
strSQL="SELECT * INTO stickers FROM [stickers$] IN '' " _ & "[Excel 8.0;HDR=YES;IMEX=2;DATABASE=C:/testing.xlsm]"
例如单元格 A1 和 B1 包含只需要保存的名字和姓氏
提前致谢
我发现了怎么做!
“test”是表格,“a,b,c,d”是列
strSQL = "INSERT INTO test (a,b,c,d)" & _ "VALUES('" & _ Data1 & "','" & _ Data2 & "','" & _ Data3 & "','" & _ Data4 & "')"