|
-
Aug 8th, 2000, 05:55 AM
#4
Thread Starter
Hyperactive Member
Thanks for this code!! What does the 2nd line ( list1.itemdata(list1.newindex) = rsRecord.fields("ID"))
in the while statement do?? If I take it out all surnames in the recordset is displayed on the listbox!!
Does the second line handle the case where I want 2 or 3 columns?? ie
Surname Tel Fax
White 8072766 8070263
Black 5465656 687634
How do I do this??
While Not rsRecord.Eof
list1.additem rsRecord.fields("surname")
list1.itemdata(list1.newindex) = rsRecord.fields("ID")
rsRecord.MoveNext
Wend
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
|