I have a form that is a data entry form. I have learned how to switch it to a filter form by using the Sort & Filter - Advanced - Filter by form. To simplify this I would like to write code (attached to a button) that will do this feature and upon closing the form it returns to data entry again. The field on the form that I want to search by is [Customer ID]. The form name is [Order Details]. Any help will be appreciated. Thanks