office交流網(wǎng)--QQ交流群號(hào)及微信交流群

Access培訓(xùn)群:792054000         Excel免費(fèi)交流群群:686050929          Outlook交流群:221378704    

Word交流群:218156588             PPT交流群:324131555

微信交流群(請(qǐng)用微信掃碼)

        

Access雙擊組閤框自動(dòng)依次顯示數(shù)據(jù)

2017-11-28 15:25:00
cg1
轉(zhuǎn)貼
5380

在Access組閤框控件中,我們點(diǎn)擊組閤框,下拉組閤框選擇數(shù)據(jù)。

這裡我們分享一箇選擇數(shù)據(jù)的技巧,雙擊組閤框,按組閤庫的行來源依次顯示數(shù)據(jù)


如下圖,雙擊組閤框,自動(dòng)按順序切換字母,組閤框名爲(wèi)“Combo0”


詳細(xì)源碼:

Private Sub Combo0_DblClick(Cancel As Integer)
    If Combo0.ListCount < 1 Then Exit Sub
    
    Dim I As Long
    I = Combo0.ListCount
    If Combo0.ListIndex < I - 1 Then
        Combo0.ListIndex = Combo0.ListIndex + 1
    Else
        Combo0.ListIndex = 0
    End If
End Sub

    分享
    文章分類
    聯(lián)繫我們
    聯(lián)繫人: 王先生
    Email: 18449932@qq.com
    QQ: 18449932
    微博: officecn01
    移動(dòng)訪問