I have vb 6 32-bit running on Vista 64-bit Premium Home. I am writing a Music Library program for my collection of Music CDs. Although I have used InStr in other appications and it worked, it will not in this app. I have a string of Artists in the database. I want select one of the string that is not first and print it to the MSFlexGrid.
strArtistString = rstMusic![Artist}
iLoc = InStr(1, strArtistString , txtSeeker.Text)
where
strArtistString = Eeny, Meeny, Miny, Moe
txtSeeker.Text = Moe
For some reason, iLoc never advances. With any of the names that are NOT first, the routine passes over and produces a "Artist Not Found". If Eeny is entered, then each search will go to the MSFlexGrid. I tried creating a function to see if that would help - it did not.
strArtistString = rstMusic![Artist}
iLoc = InStr(1, strArtistString , txtSeeker.Text)
where
strArtistString = Eeny, Meeny, Miny, Moe
txtSeeker.Text = Moe
For some reason, iLoc never advances. With any of the names that are NOT first, the routine passes over and produces a "Artist Not Found". If Eeny is entered, then each search will go to the MSFlexGrid. I tried creating a function to see if that would help - it did not.
Comment