![]() |
#2
dakaiyan2015-05-24 22:00
回复 楼主 dakaiyan
|

If Check1.Value Then
'Adodc3.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\vehicle.mdb " & ";persist security info=false"
Adodc3.RecordSource = "select sum(里程统计) as 部门汇总 from cllclist where 用车部门='" & Combo1.Text & "' and month(出发时间)='" & Combo4.Text & " ' group by 用车部门"
Adodc3.Refresh
Text1.Text = Adodc3.Recordset.Fields("部门汇总").Value
End If
'Adodc3.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\vehicle.mdb " & ";persist security info=false"
Adodc3.RecordSource = "select sum(里程统计) as 部门汇总 from cllclist where 用车部门='" & Combo1.Text & "' and month(出发时间)='" & Combo4.Text & " ' group by 用车部门"
Adodc3.Refresh
Text1.Text = Adodc3.Recordset.Fields("部门汇总").Value
End If
只有本站会员才能查看附件,请 登录