|
-
Aug 13th, 2004, 02:12 PM
#1
Thread Starter
Hyperactive Member
Populate DataListBox with Recorset [VB6]
Given a form [Form1] with a DataListBox [dlBox] and a Recordset containing a list of names [oRecs].
I am trying to display the list of Names in the Recordset in the DataListBox.
Currently my code is:
Set dlCust.DataSource = oRecs
dlCust.ListField = oRecs(0).Name
However this provides me with an empty DataListBox.
Any clues as to what I am doing wrong?
This is how I populate my DataComboboxes which works fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|