troubleshooting Question

VBA code to Plain English

Avatar of DMorgan4
DMorgan4 asked on
Microsoft Access
5 Comments1 Solution663 ViewsLast Modified:
Heres a quick and easy 50 points for someone.  Would someone please explain this VBA code to me in plain english? line by line. This may help answer my other open question.

Private Sub Combo8_AfterUpdate()
   ' Find the record that matches the control.
    Dim rs As Object

    Set rs = Me.Recordset.Clone
    rs.FindFirst "[EmployeeID] = " & str(Nz(Me![Combo8], 1))
    If Not rs.EOF Then Me.Bookmark = rs.Bookmark
    With Me.Controls("tblTimeSheet Subform2")
        If .Form.NewRecord = False Then
           .Form.Recordset.AddNew
        End If

        .SetFocus
    End With
   
End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros