I am using VB to submit info from an Infopath form to my Outlook calendar but I am hung up on the coding needed to enter a value into a textbox located on the form itself. Any assistance in this area would be greatly appreciated.
Set objOutlook = CreateObject("Outlook.Application")
Set itmAppt = objOutlook.CreateItem(1)
Set time = XDocument.DOM.selectSingleNode("/my:myFields/my:contact-data")
Set name = XDocument.DOM.selectSingleNode("/my:myFields/my:NPI-num")
This works well when by itself and adds an appointment to my calendar. I am trying to set up so that same button does this and submits the data to a SharePoint library. What I have found is that if I set up a rule on the same button the code doesn't work. To work around that I was trying write code that would change the contents of a textbox within the form to "1" and then set up a rule on the textbox that when the contents became "1" it would submit the data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.