objDataView.Sort =
Imports
Public
offenceView =
CulpritCommand.Connection = conn
CulpritCommand.CommandText = CulpritSelect
daCulprit.SelectCommand = CulpritCommand
OffenceCommand.Connection = conn
=
OffenceCommand.CommandText = OffenceSelect
daOffence.SelectCommand = OffenceCommand
conn.Open()
daCulprit.MissingSchemaAction _
= MissingSchemaAction.AddWithKey
daCulprit.Fill(objDataSet,
daOffence.Fill(objDataSet,
MessageBox.Show(ex.Message)
conn.Close()
.DataSource = objDataSet.Tables(
.DisplayMember =
.ValueMember =
cboCulprits.SelectedIndex = -1
.Find(cboCulprits.SelectedValue)
objDataView.RowFilter =
&
lblCount.Text = objDataView.Count &
& IIf(objDataView.Count = 1,
lvOffence.Items.Clear()
row = dvtblOffence(i)
lvOffence.Items(i).SubItems.Add(row(
lvOffence.Items(i).SubItems.Add(
cboCulprits.Text = Culprit.LastName.ToString
CulpritBindingSource.Clear()
CulpritBindingSource.Add(Culprit)
frmCulpritForm.addCulprit =
End