- Home
·
- Miscellaneous
·
- A one line call to populate either a combo box or a list box with the results of a recordset genera
A one line call to populate either a combo box or a list box with the results of a recordset genera
A one line call to populate either a combo box or a list box with the results of a recordset generated by an SQL call. I've tested this with
Rate A one line call to populate either a combo box or a list box with the results of a recordset genera
(2(2 Vote))
Rs.MoveLast
Rs.MoveFirst
Do While Not Rs.EOF
ctlControl.AddItem Rs(0)
Rs.MoveNext
Loop
End Sub
From your program, just say: Call PopulateRs(RecordsetName, List1) or
Call PopulateRs(RecordsetName, Combo1)
A one line call to populate either a combo box or a list box with the results of a recordset genera Comments
No comments yet — be the first to post one!
Post a Comment