当我单击白色复选框时,它必须只过滤掉其 W 在子表单中记录的比赛,这是我的代码,但它不能正常工作,任何建议有什么问题。提前致谢
Option Compare Database
Private Sub White_Click()
strFilter = "Race=W """ & Me.White.OnClick & """"
DoCmd.OpenForm "Home"
Forms!Home![Employees subform].Form.Filter = strFilter
Forms!Home![Employees subform].Form.FilterOn = True
End Sub