Hi,
I have a listbox , fill with a select. I want to select a value in the listbox and pass in another select.
But Me.lista_persone.Selected is wrong and gives me an error.
How can I select the value?
Thanks
I have a listbox , fill with a select. I want to select a value in the listbox and pass in another select.
Code:
Private Sub lista_persone_Click()
Dim tmpR As DAO.Recordset
Set tmpR = CurrentDb.OpenRecordset("SELECT Exam FROM Exam WHERE NAME_PERSON = '" & Me.lista_persone.Selected & "' ")
Me.txt_exam= tmpR.Fields(0)
End sub
But Me.lista_persone.Selected is wrong and gives me an error.
How can I select the value?
Thanks