Results 1 to 2 of 2

Thread: LIST BOX

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Posts
    3

    Post

    I'm sorry guys.... May be U think I'm really stupid 2 ask this question..... but I really don't know..... because... I'm beginner in exploring this VB software.....

    I've a question 4 U.....

    How can I list one field.... in listbox....
    4 example I've Item table.... and I want to list Item_ID (field).... I'd try to coding.... but the list doesn't come out...

    Do me a favour.....

    -Beginner-

    [This message has been edited by levis501 (edited 01-05-2000).]

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308

    Post

    Hi.
    Are you in the same class with Smie?

    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("au_id")
    Rs.MoveNext
    Loop

    End Sub

    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
  •  



Click Here to Expand Forum to Full Width