[VB6 ] keyword
請問日期如果是"2008/9/4 上午 12:21:42"
為什麼我輸入"2008/9/4"至"2008/9/4"搜尋不到
code:
If (Text7.Text = "" Or Text8.Text = "") Then
ret = MsgBox("請輸入搜尋值時間", 49, "輸入搜尋值")
Exit Sub
End If
rs.Filter = "time>=#" & Text7.Text & "# And time<=#" & Text8.Text & "#"
If rs.RecordCount = 0 Then
ret = MsgBox("無資料", 49, "搜尋結果")
End If
-----------------------------------------------
請問AA = "NH4OH;11V11_ST2"
但是我只要搜尋"11V11"就可以搜尋到
該怎麼做呢??
code:
If Text6.Text = "" Then
ret = MsgBox("請輸入搜尋值", 49, "輸入搜尋值")
Exit Sub
End If
rs.Filter = "AA='" & Text6.Text & "'"
If rs.RecordCount = 0 Then
ret = MsgBox("無資料", 49, "搜尋結果")
End If
--------------------------------------------------
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.31.134.88
推
05/05 12:35, , 1F
05/05 12:35, 1F
→
05/06 09:12, , 2F
05/06 09:12, 2F