Hello friends, hope you guys are dong well.
problem again and really looking up to my expert friends here.
I'm new and trying to write Edit code in VB.NET. the problem is
Select * From Application Where Sl_No='" + txteditno.Text + "'", con)
is not displaying and record although it works if i remove the WHERE part in my select statement....plz examinemy code...thanks
Private Sub Formedit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
strc = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=J:\Alumni\Alumni\Alumni\aadb.mdb"
con = New OleDbConnection(strc)
txteditno.Text = n
'da = New OleDbDataAdapter("Select * From Application Where Sl_No='" + txteditno.Text + "'", con)
'ds = New DataSet()
'da.Fill(ds, "Application")
cmd1 = New OleDbCommand("Select * From Application ", con)
ds = New DataSet()
dt = ds.Tables("Application")
txtslno.DataBindings.Add("Text", dt, "Sl_No")
txtname.DataBindings.Add("Text", dt, "Name")
txtdob.DataBindings.Add("Text", dt, "Date_of_birth")
txtgender.DataBindings.Add("Text", dt, "Gender")
txtdegree.DataBindings.Add("Text", dt, "Degree_obtained")
txtenroll.DataBindings.Add("Text", dt, "Year_of_Enrollment")
txtpass.DataBindings.Add("Text", dt, "Year_of_passing")
txtpadd.DataBindings.Add("Text", dt, "Permanent_Address")
txtpin.DataBindings.Add("Text", dt, "PIN_Code")
txtphone.DataBindings.Add("Text", dt, "Phone_No")
txtmobile.DataBindings.Add("Text", dt, "Mobile_No")
txtemail.DataBindings.Add("Text", dt, "Email_Id")
con.Close()
con = Nothing
End Sub