计划管理里填写如下代码,老是提示“索引超出数组界限”
这个错在在哪里,以前放在窗口里没问题
Dim cmd As New SQLCommand
cmd.C'
cmd.C
Dim dt2 As DataTable
Dim dr2 As DataRow
cmd.CommandText = "Select top 1 * From crm_customer_track where creator<>" & _userid & " and track_user=" & _userid &" Order by track_id desc"
dt2 = cmd.ExecuteReader
dr2 = dt2.DataRows(0)
If GeninShuliang<>dr2("track_id") Then
Dim dt3 As DataTable
Dim dr3 As DataRow
cmd.CommandText = "Select emp_name From pub_user where user_id=" & dr2("creator")
dt3 = cmd.ExecuteReader
dr3 = dt3.DataRows(0)
If dr2("next_time")>= Date.Today And dr2("next_time") <Date.Today.AddDays(1) Then
nfi.BalloonTipTitle=dr3("emp_name") & "给你发来今天需要处理的内容为:"
nfi.BalloonTipText =dr2("track_note")
nfi.ShowBalloonTip(300000) '提示显示的事件(毫秒)
End If
GeninShuliang=dr2("track_id")
End If
[此贴子已经被作者于2014-1-16 19:22:48编辑过]