>Any ways to avoid this ? Because it make developer feel tired to repeat the same thing.
Why don't you build a function that encapsulates it?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com