I've built a report using the report wizard with the table containing all records. I want to use an If statement prior to the DoCmd.OpenReport that will open the report for the records that match the value of a field in the table through the where condition and I just can't get the syntax correct. Should I use a query instead as the data for the report - and can I if the report was built using the table? I'd appreciate some code examples for the Where or let me know if I can use an query for this report that was built based on a table. Appreciate your help.