码迷,mamicode.com
首页 > Windows程序 > 详细

查询窗体的制作

时间:2018-11-28 14:02:39      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:data   sele   nbsp   sub   and   制作   ros   rds   ref   

Private Sub Command1_Click()
Adodc1.RecordSource = "select * from xsd where 日期 between # " & DT1.Value & " # and # " & DT2.Value & " #"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_zbjxc.mdb;Persist Security Info=False"
Adodc1.CommandType = adCmdText

End Sub

 

Private Sub Command1_Click()
Adodc1.RecordSource = "select * from xsd where 日期 between # " & DT1.Value & " # and # " & DT2.Value & " #"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_zbjxc.mdb;Persist Security Info=False"
Adodc1.CommandType = adCmdText

End Sub

查询窗体的制作

标签:data   sele   nbsp   sub   and   制作   ros   rds   ref   

原文地址:https://www.cnblogs.com/zsp2/p/10031611.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!