Select problem from DB Ms access to TextBox
I tried this code and it succeed only for one textbox but it didn't succeed for tow textboxes
Dim cmd AsNew OleDbCommand
cmd.Connection = conn
conn.Open()
cmd.CommandText = " SELECT Name,Place FROM TBaccount
TextBox1.Text = cmd.ExecuteScalar
TextBox2.Text = cmd.ExecuteScalar
conn.Close()
|