Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
End Sub
Protected Sub generate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles generate.Click
Dim a As TextBox
Dim i As Integer
Dim j As Integer
Dim numrows As Integer
Dim numcells As Integer
สมมุติ ตารางขนาด 2 row x 3 column
01,02,03
04,05,06
ใน tableMaster เก็บ
insert into [tableMaster] values("01","ตารางสมมุติ",2,3);
ใน tableDetail เก็บ
insert into [tableDetail] values("01",0,0,"01");
insert into [tableDetail] values("01",0,1,"02");
insert into [tableDetail] values("01",0,2,"03");
insert into [tableDetail] values("01",1,0,"04");
insert into [tableDetail] values("01",1,1,"05");
insert into [tableDetail] values("01",1,2,"06");