If you use VB6, the CallByName statement will help you. If you use VB5, you will have to build a SELECT CASE structure (because you must already know all the names of your form).
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com