Working in Access 2000... I have a form with records for every employee. I'd like to create two command buttons so a user can filter the form for either 'only current' or 'only former' employees. I applied the first filter ([Termination Date] Is Null) and created the first 'apply filter' command button (using the wizard), then cleared the filter, applied the second filter ([Termination Date] Is Not Null), and created the second command button. It changed the first button to apply the same filter as the second button.
How do I create two different filter options on the same form? Using the wizard, the event procedure that was created is:
Private Sub CmdCurrent_Clic k()
On Error GoTo Err_CmdCurrent_ Click
DoCmd.DoMenuIte m acFormBar, acRecordsMenu, 2, , acMenuVer70
Exit_CmdCurrent _Click:
Exit Sub
Err_CmdCurrent_ Click:
MsgBox Err.Description
Resume Exit_CmdCurrent _Click
End Sub
I don't understand enough of this to know how to change it.
Any ideas?
Angi
How do I create two different filter options on the same form? Using the wizard, the event procedure that was created is:
Private Sub CmdCurrent_Clic k()
On Error GoTo Err_CmdCurrent_ Click
DoCmd.DoMenuIte m acFormBar, acRecordsMenu, 2, , acMenuVer70
Exit_CmdCurrent _Click:
Exit Sub
Err_CmdCurrent_ Click:
MsgBox Err.Description
Resume Exit_CmdCurrent _Click
End Sub
I don't understand enough of this to know how to change it.
Any ideas?
Angi
Comment