Hi Hilary, thank you for your reply.
What is the operating system on tnhe machine that works? Win 7, Office 2007
On the machine that doesn't work? Win XP Office 2007
What version of InfoPath? Both, Office 2007
What happens if you run InfoPath as admin - can you add an event then? I can enter the form code on Win 7 machine, which is my personal machine and I am admin. The Win XP is work provided. I cannot run as admin. I receive the error only in Win XP.
Under Tools / Form Options / Programming (or from IP 2010, File / Info / Form Options / Programming) you can see the language IP is using as well as the location for the code files - try changing either one to see if you get any different results. I changed this to Visual Basic. I also did this under Tools / Opitions/ Design Tab. I found this on another forum. Did not help.
Update as of this morning: I was able to enter the code in Win 7. Therefore, I placed an error in the code and saved the form. I also transferred each of the files and subfiles into each of the sub/directory, "C:\Documents and Settings\USER\My Documents\InfoPath Projects\FILENAME\etc.... to the corresponding directory on Win XP machine. I was able to get in the code for Win XP. This was a little tricky, but it works.
Thanks for your help. I may be back as I am new to infopath and trying to mimic the directions on http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm. I know there is a product provided by your company to resolve this, however, I am on a work machine and cannot install. May I address this in a new post if I have any issues? Or be redirected? Thanks.