Jimmy,
I'd appreciate a little help here. I've been able to retrieve data fine using an AdoQueryConnection on the secondary, but it's getting the data out and usable that has stymied me.
I do not really understand the reference to ResultRow_19. I I was trying to populate a single ResultRow in QueryResults, and after that was done, then use that data programatically to further calculate/populate control on the form (which are bound to the bit of the Main data source I want to actually submit). You mention in the comments that "the name that corresponds to ResultRow_19 here can be found on the Advanced tab . . . ". But isn't that the Advanced tab relevant to a Repeating Table control? Wouldn't that nean that the iner For Each loop is populating a control rather than the Main Data Source?
In general, what I am trying to do is manipulate data at the XML/data source level, rather than through controls (hidden or not). I want to be able to take some data from the secondary source, and pre-populate some controls which are part of the Main data fields with defaults (prior to display), and populate some other Main data fields with some other information copied directly from the secondary (things like key fields to ensure referential integrity, and so on).
I'd sure appreciate some clarification on this. If you have any examples, they would be most welcome, especially if they are VB.
Cheers,
Donna