Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox refreshing and returning wrong value.

Status
Not open for further replies.

Frank123

MIS
Sep 17, 2001
77
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top