You need to make sure you are using you query fields to pull rows and the
data fields for the data you wish to submit.
The data should be visible in your form.
I would statr with the basic new form and follow its instructions
Drag the Query Fields in as a section
Drag the Data fields in to the view as a repeating table
Preview and do some queries and test it.
Add a new row to the repeating table and submit and see the data go in.
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,