为什么运行查询时会出现找不到方法或数据成员?
Private Sub cmdQuery_Click()Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strSql As String
Dim strCnn As String
Dim startDate As Date
Dim EndDate As Date
Dim strHBox As String
Dim i As Integer, j As Integer, row As Integer
Call cmdClear_Click
Call SetGridHeadText
startDate = IIf(dtpStart.value < dtpEnd.value, dtpStart.value, dtpEnd.value)
EndDate = IIf(dtpStart.value > dtpEnd.value, dtpStart.value, dtpEnd.value)
--------------------编程问答--------------------
--------------------编程问答-------------------- http://download.csdn.net/detail/veron_04/3827200 --------------------编程问答-------------------- Call cmdClear_Click
'檢測下這兩個方法是否都存在,注銷掉試下
Call cmdClear_Click
Call SetGridHeadText
Call SetGridHeadText
这两个都存在的,就是dtpStart.value 这显示未找到方法或数据成员 --------------------编程问答-------------------- dtpStart 存在吗?是 DatePicker 控件吗?如果存在的话,Value 属性应该自动改为首字母大写的。
补充:VB , 数据库(包含打印,安装,报表)