I am using InfoPath 2007
I have some code written in the form that will put a form into an e-mail. I would like to alter the subject of that e-mail so that I can display a fixed piece of text as well as the results from the data in one of the form fields;
var objEmail;
objEmail = Application.ActiveWindow.MailEnvelope;
objEmail.To = x@y.com;
objEmail.Subject = "extras request";
objEmail.Visible = true;
I want to alter the line
objEmail.Subject = "extras request";
to include display the results from the data in the form field labNO but I am not sure how ?