Filter on marked records

Hello, I have a form with a subform like (sales header and sales line) I the user Mark (ctrl F1) a line in the lines of the subform, I want to be able to make a filter on these records in a menu button. But it does not work. Can anyone help me? Thank you John

Should work. Here’s some hints Create a function in your subform where You use MARKEDONLY. Call that function from You main form with CurrForm.MySubForm.FORM.MyFunctionInMySubForm Hope that helps