I am trying to delete a row out of a listbox when you select the row then click the a button. The Listbox is unbound and has values in it selected from a combo box.
Can't really see how that would work. Looks to me like it is only changing the rowsource from showing a particular record to showing all records.
You would need to use the RemoveItem method of the listbox object, e.g. ListBox1.removeItem x, where x is the index of the item to be removed. This will remove it from the listbox. Have fun! )
What I means is that the rowsource of the listbox is the tblcustomers. After you delete a row from the tblcustomers, the above code will refresh the listbox to show that one row is deleted.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.