Also, you open the file and read the entire file for each ID entered. This is time consuming (in computer time) and so you should consider reading the file once and placing the records in a dictionary, indexed on ID, and using the dictionary to look up the info as it is entered.
Reputation Points: 741
Solved Threads: 692
Nearly a Posting Maven
Online 2,306 posts
since Dec 2006