本文介绍了如何限制控制转到它的点击事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的应用程序中,我执行2个任务:
[1]显示cmbrno_click上的所有值()
[2]显示cmbfulnm_lostfocus上的所有值()
和cmbrno样式是2下拉列表。
Hello all,
Here in my application I am performing 2 tasks:
[1]display all values on cmbrno_click()
[2]display all values on cmbfulnm_lostfocus()
and cmbrno style is 2-dropdown list.
Private Sub CmbFulNM_LostFocus()
RES.Open "student_record_database",CON,adOpenDynamic,adLockOptimistic,adCmdTable
For i = 0 To RES.RecordCount - 1
CmbRNO.Text = RES!ROLLNO // at this line control goes to the cmbrno_click event which is having same part of coding and executes that also.
TxtFNM.Text = RES!FIRST_NAME //error like: item not fount in corresponding ordinal
TxtMIDNM.Text = RES!MIDDLE_NAME
TxtLNM.Text = RES!LAST_NAME
Text5.Text = RES!CONTACT
Text6.Text = RES!CONTACT1
Text7.Text = RES!CONTACT2
TxtADDR.Text = RES!ADDRESS
COMBO1.Text = RES!GRADE
CmbDiv.Text = RES!DIV
CmbBG.Text = RES!BLOOD_GROUP
If CmbRNO.ListCount > 0 Then CmbRNO.ListIndex = i
Next i
RES.Close
End Sub
请帮助。
Please help.
推荐答案
这篇关于如何限制控制转到它的点击事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!