I tried making a command button using Microsoft's default Command Button Maker to duplicate "Filter By Selection."
I can Filter by Selection if I use the Toolbar. However, the Code from VBA does not work.
The Code Microsoft imported is:
DoCmd.DoMenuItem acFormBar, AcForm_View, 14, ...