Twitter
LinkedIn
YouTube
RSS
Facebook

MS Access VBA Control Events – PT1

In this video we are going to cover the following MS Access VBA Control Events:
Click
DblClick
GotFocus
LostFocus
DblClick
Change

This is part 1 of a 3 part video series.

Private Sub btnClick_Click()
    MsgBox "Click"
    
End Sub

Private Sub imgDoubleClick_DblClick(Cancel As Integer)
    
    'These events fire before the DblClick event
    
    'MouseDown
    'MouseUp
    'Click
    'DblClick
    
    Me.txtDoubleClick.Visible = True
    
End Sub

Private Sub txtDoubleClick_GotFocus()
    MsgBox "Enter Password Now"
End Sub


Private Sub txtDoubleClick_LostFocus()
    MsgBox "You have left this textbox.  Continue?"
    
End Sub

Private Sub lblBookReport_DblClick(Cancel As Integer)
    'Open the Book Report
    DoCmd.OpenReport "Books", acViewPreview
    
End Sub



Private Sub txtChange_Change()
    Me.lblChange.Caption = Me.txtChange.Text
End Sub

<< MS Access Form Events – PT2 | MS Access VBA Control Events – PT2 >>


Get all the videos in this Access VBA collection 100% FREE by signing up at http://vbahowto.com/ms-access-tutorial

Helpful? Consider giving us a tip. Thanks!

($5 suggested amount)




Want All The Access Videos?, Click Here!

Learn to program



Need help? Click and Call LoeblCom Services



Leave a Reply

You must be logged in to post a comment.