I have a search button which adds the duplicate reords when trying to see new cntr

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enliven60411
    New Member
    • Dec 2009
    • 10

    I have a search button which adds the duplicate reords when trying to see new cntr

    Code:
    Private Sub CenterSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCenterSearch.Click
    
            'Center name is required.  If it not there, ask for it.  
            '   (user can delete it if record is not needed).
            If Me.fCenterName.Text = Nothing Then
                MsgBox("Practical Test Center name is required." & (Chr(13) + Chr(10)) _
                    & "Please enter a Practical Test Center name.", MsgBoxStyle.Exclamation + MsgBoxStyle.OKOnly, "No Test Center Name")
                Me.fCenterName.Focus()
                Exit Sub
            End If
    
            ' check for displayed records
            CheckforDisplayedRecords()
    
    
            If PrcTestCenterDatesBeingUsed = True Then
                PrcTestCenterDatesDataSet.Clear()
                PrcTestCenterDatesDataSet.Dispose()
            End If
    
            If ArchivePrcTestCenterDatesBeingUsed = True Then
                ArchivedPrcTestCenterDatesDataSet.Clear()
                ArchivedPrcTestCenterDatesDataSet.Dispose()
            End If
    
    
            ' Set the variable to only close the form, not the application
            DoNotExitApp = True
    
            ' Close this screen
            Me.Close()
    End Sub
    Last edited by tlhintoq; Feb 3 '10, 06:10 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      I have a search button which adds the duplicate reords when trying to see new cntr
      Ok. You know what you have.

      What you don't have is a question. Nobody here knows why you posted this since you haven't asked anything. What is it you are looking for?

      I recommend you read the FAQ about How to ask a good question so the volunteers will be able to help you.

      Comment

      Working...