View Single Post
  #1 (permalink)  
Old 11-20-2008, 2:30 PM
Nader Nader is offline
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 49
Reputation: 20
Nader is on a distinguished programming path ahead
Question 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()

Reply With Quote