I don't know if this will help but I use the following for filtering in a form (Access 97). Using a button the on click code is:
On Error GoTo Err_FiltBySelect_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 0, 1, acMenuVer70
Exit_FiltBySelect_Click...