瑞星卡卡安全论坛技术交流区系统软件 VB问题求教:SQL条件使用DTPicker1.Value值查询显示数据问题?

1   1  /  1  页   跳转

VB问题求教:SQL条件使用DTPicker1.Value值查询显示数据问题?

VB问题求教:SQL条件使用DTPicker1.Value值查询显示数据问题?

command1的代码
  Dim txt2 As String
  Dim txt1 As String
  On Error GoTo err01
  txt1 = CDate(DTPicker1.Value)
  txt2 = "select 日期,物品名称,金额,单位,数量,购买地 from many  where 日期=" & txt1 & ""
  Adodc1.RecordSource = txt2
  Adodc1.Refresh
err01:
If Err.Number = 3726 Then
    MsgBox "输入不存在的,或者找不到该记录!"
End If

通过以上查询,数据无显示呀!
最后编辑2006-01-18 11:32:45
分享到:
gototop
 

【回复“朱晓磊”的帖子】你说用那些好,能给出一些实例来嘛?
大家共讨一下!
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT