Reputation: 27426
is there a way to retrieve the active filter on a form via VBA?
Upvotes: 1
Views: 4261
Reputation: 91376
You can get the contents of the filter property (immediate window):
?Screen.ActiveForm.Filter
(([FormName].FieldName="a"))
Other possibilities:
sFilter=Me.Filter
sFilter=Forms!FormName.Filter
Upvotes: 2