請教大家
要如何控制兩個datatable來做相差值的運算呢?
Dim ad As New SqlDataAdapter("select * from tmp where id='" & id & &''", con)
ad.Fill(dt)
Dim ad As New SqlDataAdapter("select * from tmp2 where id='" & id & &''", con)
ad.Fill(dt2)
會有兩個datatable,但我最後會透過副程式將傳回的sum的值
dt2.rows(i)("data")-dt.rows(i)("data")=sum
凡請大家指點迷津
感謝