I've been trying to resolve a problem but i'm stuck. I am using visual studio 2015 and mysql. I have a combobox that displays boxno. I store the boxno respectively in two tables : Doc and Delivery. In the combobox I want to display boxno from Doc except the ones stored in Delivery. Here's what i tried so far but it returns blank. Please help!
mycommand = New MySqlCommand(
"select boxno from Doc where docStatus='" +
cmbDocStatus.Text +
"' and boxno not in (Select boxno from delivery) order by boxno asc"
, connexion)