I took up Visual Basic 6 as a hobby for my retirement. I have no formal traning in computer programming...taught myself everything I know. So my code may look alien to you but it works up to a point and that is the nature of my problem.
I am writing a lottery program to check for winners and everything works great except the checking for winners part.
1. I randomly generate 30 non- repeating 6 number combinations out a field of 42 numbers into listbox 1 (this works great)
2. I enter 7 numbers out of the same field of 42 numbers into 7 different textboxes...example: 12-15-22-25-26-33-41
3. What I don't know is how to do is check each item in listbox 1that contain some numbers of the search field ( 12-15-22-25-26-33-41) which can be anywhere from 3 to all 7 for a match into listbox 2 Can you help me?
Please reply tp email@example.com
Kenneth L. Shank