I created tab pages with this,
cmd.CommandText = "Select * from StuInfo where StuID ='" & SelectedID & "' order by PayDateDB desc"
cmd.Parameters.AddWithValue("@StuID ", SelectedID)
DA.SelectCommand = cmd
DA.Fill(DS)
DT = DS.Tables(0)
RecCount = DT.Rows.Count
TabControl1.TabPages.Clear()
If RecCount > 0 Then
For Each DR In DT.Rows
newPage = New TabPage
StuClassTXT = New TextBox
StuNameTXT.Text = DR("STUClassDB") ' MS-Access Field Name
newPage.Controls.Add(StuClassTXT)
StuAMTXT = New TextBox
StuAMTXT.Text = DR("StuAMTXTDB") ' MS-Access Field Name
newPage.Controls.Add(StuAMTXT)
RecCount += -1
TabControl1.TabPages.Add(newPage)
Next
Endif
When change(Edit) details any tab page,
How can I use UPDATE command to Database