B
Bernie Yaeger
In one form I have not trouble hooking up to a datatable rowchanged event,
so that I can display fill method progress in a progressbar. But in
another - everything appears the same - I get 'object reference not set to
an instance of an object' (dt is the offending object) from this code:
Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
Me.SqlSelectCommand1.CommandText = "SELECT bipad, issuecode, imcacct, title,
brname, ponumber, draw, sold, preturn, r" & _
"return, shortage, net, efficiency, billed, shipdt, uprice, ptype,
posstatus, vflag FROM hi" & _
"std WHERE (shipdt >= " & Chr(39) & gl_browsestartdate & Chr(39) & ")"
Me.SqlSelectCommand1.Connection = Me.SqlConnection1
Me.SqlDataAdapter1.Fill(Me.Histdds1)
Dim dt As DataTable
dt = Histdds1.Tables(0)
AddHandler dt.RowChanged, New DataRowChangeEventHandler(AddressOf
DataTableRow_Changed)
pbar.Maximum = dt.GetChanges.Rows.Count
Thanks for any help.
Bernie Yaeger
so that I can display fill method progress in a progressbar. But in
another - everything appears the same - I get 'object reference not set to
an instance of an object' (dt is the offending object) from this code:
Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
Me.SqlSelectCommand1.CommandText = "SELECT bipad, issuecode, imcacct, title,
brname, ponumber, draw, sold, preturn, r" & _
"return, shortage, net, efficiency, billed, shipdt, uprice, ptype,
posstatus, vflag FROM hi" & _
"std WHERE (shipdt >= " & Chr(39) & gl_browsestartdate & Chr(39) & ")"
Me.SqlSelectCommand1.Connection = Me.SqlConnection1
Me.SqlDataAdapter1.Fill(Me.Histdds1)
Dim dt As DataTable
dt = Histdds1.Tables(0)
AddHandler dt.RowChanged, New DataRowChangeEventHandler(AddressOf
DataTableRow_Changed)
pbar.Maximum = dt.GetChanges.Rows.Count
Thanks for any help.
Bernie Yaeger