Hi all.
I have a ListBox which gets its data from a DAO.Recordset I created in VBA (after running a SQL query)
This DAO record set is not closed/cleared by using set DAOrecordset = nothing until the form closes - So, as I understand it, the recordset remains open and can be referenced right?
-------------------------------------
The SQL Code used is:
"SELECT TblPhoneCall.CallerName, TblPhoneCall.CompanyName, TblPhoneCall.DateTime, TblPhoneCall.Description, TblWelcomePacks.ID " & _
"FROM TblPhoneCall INNER JOIN TblWelcomePacks ON TblPhoneCall.ID = TblWelcomePacks.ID " & _
"WHERE TblPhoneCall.CallerName LIKE '" & EdCallerName.Value & "*' " & _
"ORDER BY TblPhoneCall.CallerName;"
------------------------------------
the List box is updated with the records found with the above SQL code.
So, onto my problem...
When I click on an item in the list box, I want the corresponding records' Description (as in bold in the SQL code) data to be displayed inside a TextBox located on the form.
I've experimented with the SEEK function however I kept getting errors.
Can anyone help?