Results 1 to 2 of 2

Thread: listbox and additem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Unhappy listbox and additem

    Hi,
    Using a form in Access
    i wanna add a new item to a list box. I want to do it programmatically and not through the access wizard.
    for some reason I cant seem to use list1.additem ("red")

    coul this be that I dont have DAO listed as a reference in access? how do i check that out? is there another way to do it?


    Thanks
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    It doesn't work like a vb listbox. It's a semicolon delimited string.
    Set the RowsourceType property to Value List. Then
    Me!list1.RowSource = Me!list1.RowSource & ";" & "whatever"
    VB 6.0, Access, Sql server, Asp

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