
Form Disapering (please Help)
I have an program that shows a detail form with a text box to enter a driver
name, and check that a name was entered.
My problem is when a name is not entered I show a (OK Cancel box), when I
click ether button it returns me to the main form. I would like it to return
me to the details form with all of the data I have entered up to the point
that I clicked the save button.
Rite now I lose anything that I have entered in the details form.
Here is the code I am using.
Thank You.
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSave.Click
If Me.txtDriverName.Text = "" Then
MessageBox.Show("You must enter a Driver Name to Save this Record", "No
Driver Name", MessageBoxButtons.OKCancel, MessageBoxIcon.Error)
Else
End If
Exit Sub