Community discussion forum

saving items in listboxes

  • 6 months ago
    is it possible to save items in listboxes without selecting them?
    Post was edited on 26/04/2009 12:11:59 Report abuse
  • 6 months ago

    dim i%

    for i=0 tolistbox.listems.count listbox.listindex=0 with recordset recordset.field=listbox.text endwith listbox.listindex=i next i

  • 6 months ago

    What do you mean without selectng them?

  • 6 months ago

    This will not be exact but the code will be almost just like this. also i dont know what you are exactly trying to do so i will just leave the spot blank where it will execute your code for "saving".

    Visual Studio 2008 code...

    Dim i As Integer Dim count As String i = "0" count = listbox.items.count

    Do While (i < count)

    [[your code here]]

    i = i + 1 Loop

    Now whatever you want to do with the data you can put where I have [[your code here]]

    Hope it helps Corey

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback