baggyboy26
Technical User
Ok, this is confusing me. I have a database that i need to disable menus etc in order to not confuse my users. One of which is filter by selection. I have used the button wizard to create a filter by selection button. This button does not work on my form but the filter by selection in the access toolbar works brilliantly. What gives? Here is the code behind the button.
Private Sub SelectFilt_Click()
On Error GoTo Err_SelectFilt_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 2, , acMenuVer70
Exit_SelectFilt_Click:
Exit Sub
Err_SelectFilt_Click:
MsgBox Err.Description
Resume Exit_SelectFilt_Click
End Sub
Private Sub SelectFilt_Click()
On Error GoTo Err_SelectFilt_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 2, , acMenuVer70
Exit_SelectFilt_Click:
Exit Sub
Err_SelectFilt_Click:
MsgBox Err.Description
Resume Exit_SelectFilt_Click
End Sub