rabbithole
Programmer
rabbithole (Programmer) May 5, 2000 <br>I am trying to conduct a search on an access database table - the records found are then display in a list box.<br>Once a specific record is chosen from the listbox - I am seeking to display same record on a view form.<br><br>Code so far being =<br><br>Sub Search<br><br> letter = txtSearchFind.Text<br> st = "FirstName like '" & letter & "*' "<br> Data1.Refresh<br> Do While True<br> Data1.Recordset.FindNext st<br> lstSearchMatches.AddItem_ Data1.Recordset.Fields "FirstName".Value <br> If Data1.Recordset.NoMatch = True Then<br> Exit Do<br> End If<br> <br> Exit Do<br> Loop<br>End Sub<br><br>Sub View_Record<br><br>If frmSearch.lstSearchMatches.Selected(lstSearchMatches.ListIndex) = True Then<br>frmView.Show (lstSearchMatches.List(lstSearchMatches.ListIndex))<br>End Sub<br><br>PROMPT HELP WOULD BE GREATLY APPRECIATED!!!!!! <br>