kkhambhalia
New member
- Joined
- Mar 10, 2006
- Messages
- 1
- Programming Experience
- 3-5
here i am putting my vb.net coding and i fill labels name from table fields name.
Dim MyConn AsNew OleDb.OleDbConnection
Dim mydataset AsNew DataSet
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\VB98\nwind.mdb;User Id=admin;Password=;"
MyConn.Open()
Dim myadp AsNew OleDb.OleDbDataAdapter("select * from customers", MyConn)
myadp.Fill(mydataset, "Customers")
Label3.Text = "Total Records : " & mydataset.Tables(1).Rows.Count
Label1.Text = ??????????
Label2.Text = ??????????
TextBox1.Text = mydataset.Tables(0).Rows(0).Item(0)
TextBox2.Text = mydataset.Tables(0).Rows(0).Item(1)
what should i have to write on behalf of ?????????? to fill label with field name?
Dim MyConn AsNew OleDb.OleDbConnection
Dim mydataset AsNew DataSet
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\VB98\nwind.mdb;User Id=admin;Password=;"
MyConn.Open()
Dim myadp AsNew OleDb.OleDbDataAdapter("select * from customers", MyConn)
myadp.Fill(mydataset, "Customers")
Label3.Text = "Total Records : " & mydataset.Tables(1).Rows.Count
Label1.Text = ??????????
Label2.Text = ??????????
TextBox1.Text = mydataset.Tables(0).Rows(0).Item(0)
TextBox2.Text = mydataset.Tables(0).Rows(0).Item(1)
what should i have to write on behalf of ?????????? to fill label with field name?