So, this form submits to a particular library, and you also want to query data from the library? You can add a data connection to the library - if you are using ShP 2010, you can even use the available query fields to return just the data for a particular field value.
Hilary Stoupa
