Here is my report
What you don't tell us in your posts is the structure of your database. Thus, I must confine my response to very generalized examples:
You have two methods for querying a FileMaker database. The first method may be done manually or via a script:
1) Enter find mode, specify the criteria for the find and perform the find. As a scripted find, it's possible to set up global fields in which the user enters/selects criteria and then the script uses that criteria to perform the find.
Enter Find Mode  ---> clear the pause check box
Set Field [YoutTable::YourField ; Globals::GlobalFIeld ]---> Second field must be global and can be part of an expression that includes find operators
#You can put many more steps here to produce many different types of queries of your data
Set Error Capture[on] ---> keeps error dialog from interrupting your script if no records are found
2) You can use a relationship to find the records for your report. If you can add a portal to a layout that lists the records you want in your report, then the Go To Related Records script step may be used to pull up a found set of related records for use in your report.