|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
我已知道
cnn.Open "Driver={SQL Server};Server=192.168.18.2;database=" & "XZBY" & ";uid=sa;pwd=hulizhen"
On Error GoTo ErrMsg
strSQL = "INSERT INTO CLOCK_CARD(card_no,card_id,card_date,card_time,card_clock,cOLlect_date,card_flag,card_remark) SeLECT A.card_no,A.card_id,A.card_date,A.card_time,A.card_clock,A.cOllect_date,A.card_flag,A.card_remark From " & "OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=\\PC\APS$\GS.mdb;Jet OLEDB:Database Password=2800;')...clock_card AS A"
strSQL = strSQL & " WHERE A.CARD_DATE between '" & 刷新数据.DTPicker3 & " 'and' " & 刷新数据.DTPicker1 & "'"
rst.Open strSQL, _
cnn, adOpenKeyset, adLockOptimistic, adCmdText
[ 本帖最后由 YANGYUNHAO 于 2009-2-7 08:21 编辑 ] |
|