
已解决问题
谷歌huang.guoguo用户在2013.10.14提交了关于“李咏vb SQL 对象Refresh的方法IAdodc失败”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2025-01-02T03:12:04。PrivateSubText1_KeyPress(KeyAsciiAsInteger)Dimi
i=Trim(Text1.Text)
IfKeyAscii=13Then
Ifi<>""Then
Adodc1.RecordSource="select*from工票表where员工编号=i"
Adodc1.Refresh
Adodc1.Recordset.Fields("姓名")=Label1.Caption
Adodc1.Recordset.Fields("工种")=Label2.Caption
EndIf
EndIf
EndSub希望大家能够帮助她。
详细问题描述及疑问:PrivateSubText1_KeyPress(KeyAsciiAsInteger)
Dimi
i=Trim(Text1.Text)
IfKeyAscii=13Then
Ifi<>""Then
Adodc1.RecordSource="select*from工票表where员工编号=i"
Adodc1.Refresh
Adodc1.Recordset.Fields("姓名")=Label1.Caption
Adodc1.Recordset.Fields("工种")=Label2.Caption
EndIf
EndIf
EndSub期待您的答案,谢谢你帮我,祝你快乐,愿你事事如意
!