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
Printable View
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
@Bogaa.... WHAT adds two names to the textbox....let me see the code.......
dim myName as string
myName = Mid(Text1.Text, (Len(Text1.Text) / 2) + 1)
Text1.Text = myName
does that do what you need??????
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