Hi - and thanks for your response - with regard to your response I have a few queries about it -
1) When you say "We can set that value using rule in InfoPath" how do I go about doing this
and you might have to excuse my ignorance for this but I'm fairly new to Infopath 2007 and VSTA:
2) When you refer to the secondary DOM - do you mean the Data Object Model
3) With regard to this line -> var secondaryDOM = XDocument.GetDOM("Data Connection Name"); I am not using a Data COnnection; basically just the information from my URL to get information for the form
4) for this line here var queryString = secondaryDOM.selectSingleNode("XPath of your field"); the Xpath you refer to is that jus tthe node?.... for example variable=testVariable
5) For this line here my intellisense doesnt seem topick up my fieldnames when I type in their first few letters is there a reason behind this - do I need to reference any extra/special classes?
Thanks again for your assistance and I look forward to your response.