Hi,
You can do that without code are you interested by this possibilty?
If yes launch infopath in the center window click design a form. in the taskpane click new from database a wizard appear link the database and specify default values for the query and design your form !
If not in tools, programming, on Load event and write the code to link your database with our form!
++
Thierry
I'll hope this help!
Every moment hesitated is a moment gone for life!!! Think about it
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci