Bill Bisco
Custom User Title
- Local time
- Today, 13:01
- Joined
- Mar 27, 2009
- Messages
- 92
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:
I tried searching for other topics on this issue, but didn't find an answer.
1. Why does the button on the Toolbar but not the Code work?
2. Is there any VBA Code out there that duplicates the Toolbar's Filter By Selection Button?
Any Help is Appreciated.
Sincerely,
Bill
I can Filter by Selection if I use the Toolbar. However, the Code from VBA does not work.
The Code Microsoft imported is:
Code:
DoCmd.DoMenuItem acFormBar, AcForm_View, 14, , acMenuVer70
1. Why does the button on the Toolbar but not the Code work?
2. Is there any VBA Code out there that duplicates the Toolbar's Filter By Selection Button?
Any Help is Appreciated.
Sincerely,
Bill
Last edited: