I have a form that uses an option group (radio buttons) which allows the user to select a specific filter for a report.
The default is ALL records using the following:
DoCmd.OpenReport "ChecksByCategory", acViewReport
When the user selects something other than ALL, my code will convert the option value of the radio button to a string that I use as the option label.
DoCmd.OpenReport "ChecksByCategory", acViewReport, , "Category = " & myFilter
My problem: One option is to report on all records where Category is null and I can't get this to work. No matter how I code this, when Access does not error on my syntax (for is null), I get a blank report. All other options work. I have tried every variation of [Category] is Null that I can think of with no luck to date.
To work around this, I duplicated ChecksByCategory, modified the query to [Category] is null and named the report ChecksNoCategory.
How can I get my DoCmd.OpenReport to recognize "Is Null"?
Thank you