For loop1 = 1 To rec.RecordCount
TDM = DoEvents()
If lst.Text = 'abc'Then
txtUserID.Text = rec.Fields("UserID")
End If
rec.MoveNext
Next loop1
why use doevents() in this program?
DoEvents is something to be used with caution - you need to consider that it might allow the user to click on a button and have the button code executed while you're in the middle of something else...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.