H Sarah,
The code in the link above was written in c#. You will need to have Visual Studio.net installed.
1. Create a new blank InfoPath form from Visual Studio .NET, using C#.
2. Add a Button control
3. Open the button's properties window by double-clicking on the button
4. Click on the "Edit Form Code" button
5. An event handler stub is added to the FormCode.cs file for the button#%92s OnClick event. Add the code to the body of the new method
Stephanie Cantwell / Test ManagerQdabra® Software / Streamline data gathering to turn process into knowledge