{
FillDataTable(s);
}
truckLic =
sqlBuilder.AppendLine(
cmd.CommandText = sqlBuilder.ToString();
cmd.Parameters.AddWithValue(
dataFound =
sqlBuilder2.AppendLine(
cmd2.CommandText = sqlBuilder2.ToString();
cmd2.Parameters.AddWithValue(
truckLic = result2.ToString();
I am calling this from the enter event of the license textbox. The problem is if a company has more than one truck and therefore more than one license number. I am trying to call a browse dialog by repopulating a BO based on the carriers PK.
trkLic2 =
This sets up the browseDIalog and it shows all the license numbers for a carrier
The problem is that I am back to the maintainence form it starts over again. My question is is there a way to use executeReader to return all the values and put them into the BrowseDialog?
// If CustomersBrowseDialog1.ShowDialog() = DialogResult.OK Then
// Me.txtCode.Text = CustomersBO1.cust_pk.ToString
// End If
this now works and returns the value but the form still wants to start over, how do I get the focus back to the forms main BO (certificateBO1) and back to the textbox that calls this browsedialog?