Hi All,
I have 2 data table in my application and want to create a new table from those 2 tables.
Dim sql As String = "Select ID, DESC, QTY from Purchases Where PDate >= @StartDt and PDate <=@EndDt order by ID"
Dim da As New OleDb.OleDbDataAdapter(Sql, Con.conn)
da.selectCommand.Parameters.AddwithValue ("@StartDt", me.dtpStart.value.Date)
da.selectCommand.Parameters.AddwithValue ("@EndDt", me.dtpEnd.value.Date)
Dim dt As New DataTable
dt.clear()
da.fill (dt)
The table1 contains data like
500
0
700
640
0
1100
500
The tabl2 contains data like
ID DESC QTY
1 ASD 2000
2 BNS 1500
3 DSC 200
4 QSR 300
5 RSJ 4500
6 JVS 1800
7 LKS 1450
And I want to create a table from those 2 tables like:
ID DESC QTY
1 ASD 2500
2 BNS 1500
3 DSC 900
4 QSR 940
5 RSJ 4500
6 JVS 2900
7 LKS 1950
how can i achieve this. Any suggestion would be appreciated. Thanks