I've got a listbox that gets populated from an Access table. Then I got a button below that when clicked erases the highlighted record. My problem is this: when I do a listbox.gettext() it always returns the first record no matter what record is highlighted. So I believe the listbox is refreshing before value gets returned. Here's my code:
sub btnDeleteSite_onclick()
site = Listbox2.getText()
Response.Write(site) 'Just want to see what value
end sub
Thanks a lot!
sub btnDeleteSite_onclick()
site = Listbox2.getText()
Response.Write(site) 'Just want to see what value
end sub
Thanks a lot!