• Delete selected item from listbox (access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Delete selected item from listbox (access 97)

    Author
    Topic
    #366328

    I have a listbox along with a “deselect ” button , when the user has selected an item on the list and presses
    deselect button i want to remove the selected item from the list…
    Actually i am looking for substitute of Removeitem method of VB as access does’nt support this method
    This is urgent …please help somebody

    Viewing 0 reply threads
    Author
    Replies
    • #567842

      How did you populate the listbox in the first place? Is it based on a table, a query, a callback, a values list, a field list or what?

      You can do things with listboxes in Access that VB programmers can only dream of, but if you want a RemoveItem equivalent, you’re going to have to program it. You can’t get a definitive answer until we know exactly what you’re trying to do.

      One benefit of lists in Access over VB is that you have a built in SelectedItems collection when you turn on the Multiselect property of the listbox. That means you don’t *have* to remove anything from the list, you can simply deal with the items selected instead. Another is that the secondary array is populated automatically, so you can use ItemData without having to explicitly create it in code.

    Viewing 0 reply threads
    Reply To: Delete selected item from listbox (access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: