Results 1 to 2 of 2

Thread: Combo Boxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    south africa
    Posts
    16
    Hi!

    What is the syntax for loading data to comboboxes and listboxes from the databases.Whenever I use the "additem" it gives me errors.

    thanx.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    66

    Additem in Listbox

    Here is a small example with a select in an Access database then, I use the Additem for adding recordds in my list box

    '
    SQL = "select my_table from my_column where vadm_id = " & AdmId
    Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset)
    '
    Do Until Rs.EOF
    ListBox.AddItem Rs![my_description]
    Rs.MoveNext
    Loop


    Good luck,
    Thierry Demoy (France)

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