出现对象Refresh的方法IAdodc失败的错误 大侠们 帮帮忙
PrivateSubListView1_Click()Adodc1.RecordSource="select*fromtb_userwhereuser_name='"+L...
Private Sub ListView1_Click()
Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
For i = 4 To Check1.UBound
If Adodc1.Recordset.Fields(i) = "" Then
Check1(i).Value = 0
Else
Check1(i).Value = Adodc1.Recordset.Fields(i)
End If
Next i
Adodc1.Recordset.Update '更新数据记录
Adodc1.Refresh
End If
End Sub
出现对象Refresh的方法IAdodc失败的错误 大侠们 帮帮忙 展开
Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
For i = 4 To Check1.UBound
If Adodc1.Recordset.Fields(i) = "" Then
Check1(i).Value = 0
Else
Check1(i).Value = Adodc1.Recordset.Fields(i)
End If
Next i
Adodc1.Recordset.Update '更新数据记录
Adodc1.Refresh
End If
End Sub
出现对象Refresh的方法IAdodc失败的错误 大侠们 帮帮忙 展开
展开全部
Private Sub ListView1_Click()
Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem.Text + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
For i = 4 To Check1.UBound
If Adodc1.Recordset.Fields(i) = "" Then
Check1(i).Value = 0
Else
Check1(i).Value = Adodc1.Recordset.Fields(i)
End If
Next i
Adodc1.Recordset.Update '更新数据记录
Adodc1.Refresh
End If
End Sub
楼主这一句有问题 Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem.Text + "'"
Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem.Text + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
For i = 4 To Check1.UBound
If Adodc1.Recordset.Fields(i) = "" Then
Check1(i).Value = 0
Else
Check1(i).Value = Adodc1.Recordset.Fields(i)
End If
Next i
Adodc1.Recordset.Update '更新数据记录
Adodc1.Refresh
End If
End Sub
楼主这一句有问题 Adodc1.RecordSource = "select * from tb_user where user_name ='" + ListView1.SelectedItem.Text + "'"
追问
这个没有问题的,不过谢谢你了
金山毒霸
2024-10-31 广告
2024-10-31 广告
大部分系统错误,是因为某些DLL文件丢失造成的,比如未安装DirectX9或DirectX 9.0组件已损坏、缺少Visual C ++库、未安装.net库。解决方法如下:一、 手动解决方法1、先确定电脑操作系统是多少位的,现在的电脑一般都...
点击进入详情页
本回答由金山毒霸提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询