Two possibilities occur to me:
1. A simple loop through all of the textboxes checking for entries, or
2. Forcing users to enter data in one box at a time. Eg, the user can't move to box2 until there is data entered in box1.
Are either of these approaches practical?