5 pts.
 Create a report with only results with specific entry in field
Very simple question - sorry. How do I create a report where only the entries where a field has a specific answer. Such as only the results whose tick box is ticked, or who's "category" field is a certain category?

Software/Hardware used:
ASKED: April 26, 2009  2:00 PM
UPDATED: April 27, 2009  4:01 PM

Answer Wiki:
If your report is based on a query, simply appliy your criteria in the query. If your report is based on a table, you could set the record source of the report to a select statement, i.e. select * from table where tickbox = true Or if you run your report from a from with a button. You could use the where parameter of the OpenReport method. Then you simply put "tickbox = true" in the where part. Also, if you select a category on the form to print the report, you could put that in the where parameter as well. So you would put "category = '" & Me!Category & "'" in the where part. Hu Sleepybird! As mentioned above, I'm assuming you are obtaining the data for your report via a query. If you have a field, for instance, "vendor" and you just want the report to look at vendor "Kroger" (or whatever) in the criteria for that query field just type the word "Kroger". If there are other vendors, type "Kroger" or "Safeway" or "Alco". Run the query and see if that doesn't return the data you want to see. The previous writer is exactly right about selecting "true" in the criteria for a yes/no box (or "false" as the case may be.) Good luck! It looks like you are a beginner and I promise you that you will LOVE this program the more you get into it! Cheers! JuJu
Last Wiki Answer Submitted:  April 27, 2009  4:01 pm  by  Randym   1,740 pts.
All Answer Wiki Contributors:  Randym   1,740 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _