nick1200 0 Report post Posted May 3, 2011 (edited) Hello i have a upload script which uploads a text file into my listview3The problem im having it if i do123in a not pad it will not work if i do1 - 2it will upload 1 but not 2 into listview3I think its because im using a account uploadedHere is the code Private Sub Command3_Click()Dim frmNum As Integer On Error GoTo cdError Dim fNum%, tmpStr$ fNum = FreeFile() With Form1.ComD .Filter = "Text Files (*.txt)|*.txt" .CancelError = True .DialogTitle = "Load a list..." .ShowOpen Open .FileName For Input As #fNum MyList = .FileName MsgBox "Please wait while the accounts are loaded..", vbInformation, "Please wait.." Do While Not EOF(fNum) Line Input #fNum, tmpStr Line Input #fNum, tmpStr Dim tmpStr1() As String tmpStr1 = Split(tmpStr, " - ") Form1.ListView3.ListItems.Add , , tmpStr1(1) Command4.Caption = "Accounts: " & Form1.ListView3.ListItems.Count If Slow Then DoEvents Loop Close #fNum End WithcdError:End Sub Edited May 3, 2011 by nick1200 (see edit history) Share this post Link to post Share on other sites