Hi Mike
I hadn't done this before but I find that, provided the report you are using supports it, you can do this in the form edit page with preset parameters.
I experimemted with the report library>samples>samples list. The important thing was that, in the list of parameters, there was one with datatype='smpattrs'.
I first added some preset parameters to match all of the parameters defined in the report as follows
survey_id=83
date_from=
date_to=
smpattrs=228,230,231
sample_method_id=
Obviously that is my survey id and my sample attribute ids which you would replace with your own.
My 3 attributes fields are lookup, text and integer.
Then, referring to the documentation that John pointed us at, but specifically at the section on optional custom attributes I found that the following additional preset parameters filtered on the sample attributes.
attr_sample_228=1982
attr_sample_230='01:00'
attr_sample_231=1
Attribute 228 is a lookup so I filter on the id of the item in the lookup list that I want.
Attribute 230 is text and I found this needed to be in single quotes to work.
Attribute 231 is an integer.
What appears in the "Report parameters" when viewing the report is the list of parameters declared in the report file. I can see that choosing a report that does what you need poses a problem when the descriptions are rather scanty. However you can see what they all do by looking in the repository as per my link above.
Jim Bacon.