Query Code Does not work

programmer_21

New member
Joined
Mar 5, 2007
Messages
1
Programming Experience
Beginner
I want to know in this is code connecting with sql server 2000 with Northwind Table :​
VB.NET:
Dim cmdCust As New System.Data.SqlClient.SqlCommand()cmdCust.CommandText = "Select * From Customers where CustomerID = " & TextBox1.Text
cmdCust.Connection = SqlConnection1
SqlDataAdapter1.Fill(DataSet11, cmdCust.CommandText)
DataGrid1.DataSource = DataSet11
The problem is code refer to all item in table not condition input with user .

Else I want any search code .​

Please Anser with my question .​
 
Last edited by a moderator:
Back
Top