Try
sql = "SELECT * FROM tblDriver WHERE dName ='" & lbDriverName.SelectedItem"'"
I think that should work - you have to have the whole statement surrounded by double quotes but to add the selected item I think you put it within double quotes within single quotes . . .
maybe this post helps:
http://www.daniweb.com/forums/post700733.html Last edited by rapture; Oct 9th, 2008 at 3:54 pm. Reason: add other forum post