[求助]请帮忙看看代码错在哪里? Post By:2012/1/16 14:13:00 [只看该作者]
我需要统计出预约时间到期的邮件数,下面的代码总是返回结果0,请帮忙看看错在哪里!
Dim cmd9 As New SQLCommand
Dim Count As Integer
Dim d1 As Date = Date.Today
cmd9.C
cmd9.CommandText = "select * FROM {收件表} WHERE [下次联系日期] <= '" & d1 & "' and [邮件状态] = '改天再联系'"
count=cmd9.ExecuteNonQuery()
If count<0 Then
count=0
End If
e.Form.Controls("TextBox62").value=count