|
-
Jan 5th, 2000, 08:29 AM
#1
Thread Starter
Addicted Member
How would I load a column (col) from a database table into my listbox? Thanks
-
Jan 5th, 2000, 09:27 AM
#2
Hyperactive Member
Hi,there!
Here is a code:
Private Sub Form_Load()
Dim Db As Database
Dim Rs As Recordset
Set Db = OpenDatabase("BIBLIO.MDB")
Set Rs = Db.OpenRecordset("AUTHORS")
Rs.MoveFirst
Do Until Rs.EOF
List1.AddItem Rs.Fields(1)
Rs.MoveNext
Loop
End Sub
Good luck.
Larisa
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
|