Hi.
In InfoPath you enter a value into a query field and it will return only the records which math the query data.
So in your form set ID for example to 1 and then run the query.
The only record returned will be the record with ID1, if it exists.
I am guessing that is your issue.
I alsways recommend createing a new form, based on your tables and then just drag all the fields onto your view and use the query button to play with it.