นี้คำสั่ง SQL
SELECT *,*,(Import_Detail.Imp_Amount + Drug.D_Balance)Column3 FROM Import_Detail,Drug WHERE Import_Detail.D_Id = Drug.D_Id
นี้โค้ค ใน VB
AddBalance_DataGridView.AutoGenerateColumns = False
Dim SQL As String
Dim dt As New DataTable
SQL = "SELECT *,*,(Import_Detail.Imp_Amount + Drug.D_Balance)Column3 FROM Import_Detail,Drug WHERE Import_Detail.D_Id = Drug.D_Id"
dt = c.ExRead(SQL)
AddBalance_DataGridView.DataSource = dtCode (VB.NET)