mkkb917 (5/9/2014)
ZoneSearch is a variable and it contain a zone name selected form the combo box itemshere it is "City"
don't you have to put singe quotes in there too, besides the missing equals sign?
'"SELECT IP_Addr FROM IPPOOL WHERE ZoneName = 'Miami' AND UserName IS NULL"
Dim adapterloadIP As New SqlDataAdapter("SELECT IP_Addr FROM IPPOOL WHERE ZoneName = '" & ZoneSearch & "' AND UserName IS NULL", con)
Lowell