Sorry.
The problem seems to be that, even though I don't get an error message, the program is not pulling the value of the controls I reference. Any of them, really. I have checked the XPath of my controls many times, and they seem valid.
I have made several observations that I can't explain. The same code works in a form that is not based on a database (the only difference in code between the two forms is the appropriate XPaths to the controls).
However, the form that is based on an Access Database won't seem to access the controls. I have a few controls (those stored in variables not used in the For loop) that are not in a repeating table, and I should be able to use the selectSingleNode method. However, that method errors out with "Object Required" (line 158, for example, if I change it to selectSingleNode).
This makes no sense to me, since selectSingleNode, as I understood it, actually internally utilizes selectNodes. However, I get no error message using selectNodes, even though the program doesn't seem to pull any information (.text) from those nodes/controls.
So the basic problem is that I can't seem to programmatically access the information stored in the various text fields and listboxes that I'm referencing in order to concatenate a string in the Intro body of my email submission.
Is there any difference between how selectNodes is used in a form built on a database and a form not based on a database?
Any idea what I'm missing?