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

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

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

微信交流群(請用微信掃碼)

        

Access雙擊組合框自動依次顯示數(shù)據(jù)

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

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

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


如下圖,雙擊組合框,自動按順序切換字母,組合框名為“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
    移動訪問