Hi All,
Need some help with a listbox display to textbox...After loading my listbox from the database, I need to be able to select duplicate names and display them in a textbox....it works fine on the first name but if there is a duplicate last name it still displays the first one no matter which one you click.....below is the code I am trying to use.......Pleas e any help would be appreciated.... ....
Set RS = db.OpenRecordse t("Select * from retmem where [lname] = '" & Trim(list1.list (list1.ListInde x)) & "'")
txtfirst.Text = RS("fname")
txtlast.Text = RS("lname")
Need some help with a listbox display to textbox...After loading my listbox from the database, I need to be able to select duplicate names and display them in a textbox....it works fine on the first name but if there is a duplicate last name it still displays the first one no matter which one you click.....below is the code I am trying to use.......Pleas e any help would be appreciated.... ....
Set RS = db.OpenRecordse t("Select * from retmem where [lname] = '" & Trim(list1.list (list1.ListInde x)) & "'")
txtfirst.Text = RS("fname")
txtlast.Text = RS("lname")
Comment