I want to create a dynamic filter on a query I have. Is there a way to add a "where" statement to a query using VBA? I have a form and if the user selects "Show only zip code 92705" then I want to be able to add that condition to my sql statement. I tried just adding [Forms]![MyForm]![MyControl] to the criteria of the query, but sometimes the user won't need to sort by zip code, but by another field and if I leave this criteria in query, my query doesn't return anything. Any ideas? Thanks!!