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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -