cmd.CommandText = "select a.cname,sum(j.ctot),sum(j.dtot) from acc a inner join jrn j on a.cname=j.cname where a.type='" & tabs.cmbgroup.Text & "' group by a.cname" da.SelectCommand = cmd ds.Clear() da.Fill(ds) accBindingSource.DataSource = ds.Tables(0) ReportViewer1.RefreshReport() DataGridView1.DataSource = ds.Tables(0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)