fixed some links to the data so that the proper data is returned.

Also, cleaned up the code for the report to loop through the return items from the SQL query so that changes in the SQL code reflect in the actual code.
Linked the textboxes so these are updated from the query and made the query so when there are multiple records then we can change records to print results.