vb.net - How do I get multiple values from query using OleDBConnection? -
i have edited previous code , tried below, have changed textbox listbox same name, no value in listbox after running below code:
myconnection.connectionstring = provideredit dim str string str = "select [email] [prd_records] [receivekmcwemsalerts] = yes" using cmd oledbcommand = new oledbcommand(str, myconnection) myconnection.open() dim reader oledbdatareader = cmd.executereader(commandbehavior.closeconnection) while reader.read() txtcreateannto.text = reader(0).tostring end while reader.close() end using
thanks responses.... found problem code, simple , overlooking it. update coded below: myconnection.connectionstring = provideredit dim str string str = "select [email] [prd_records] [receivekmcwemsalerts] = yes"
using cmd oledbcommand = new oledbcommand(str, myconnection) myconnection.open() dim reader oledbdatareader = cmd.executereader(commandbehavior.closeconnection) while reader.read() txtcreateannto.items.add(reader(0).tostring) end while reader.close() end using
Comments
Post a Comment