All pastes #412948 Raw Edit

marky-b

public text v1 · immutable
#412948 ·published 2007-03-28 01:28 UTC
rendered paste body
                       ' Display a message box to determine if the user would like to edit an existing entry

                        Dim response As DialogResult

                        MessageBox.Show("There is already a record for " & firstNameString & _
                        " " & lastNameString & "." & ControlChars.NewLine & _
                        "Would you like to edit the existing record?", "Input Error", MessageBoxButtons.YesNo)

                        If response = Windows.Forms.DialogResult.Yes Then
                            frmEdit.Show()
                        End If