Results 1 to 4 of 4

Thread: help with duplicate name

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    Posts
    137

    Exclamation help with duplicate name

    i need help removing duplicate name example is below

    i only need 1 name but it adds 2 instead of 1

    error i face with 2names i need to remove 1

    deandean


    i only need 1 name dean

    how do i remove deandean make it to 1 only

    it adds in text1

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: help with duplicate name

    @Bogaa.... WHAT adds two names to the textbox....let me see the code.......

  3. #3
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: help with duplicate name

    dim myName as string
    myName = Mid(Text1.Text, (Len(Text1.Text) / 2) + 1)
    Text1.Text = myName

    does that do what you need??????

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: help with duplicate name

    You don't need help in removing duplicate names; you need help in avoiding putting duplicate names in textbox.

    Maybe you are concatenating the string you add to Text1

    Text1.Text already equals "dean"

    Then you add "dean" again - Text1.Text = Text1.Text & name - where name = "dean" - perhaps you did not clear the name variable next time you add to Text1. Also, because it comes out "deandean" it looks like you are not adding the & vbCrLf to the end of each line


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width