G
Guest
Thanks for reading my question.
I have a main form and a sub form. I want to filter my sub form from my
main form.
What is wrong with this code?
I want to filter the sub form where LotNumber on the sub form is 1. The
button to run the filter is on the main form.
Main Form = frmFinalApproval
Sub Form = frmDataSheet
Forms!frmFinalApproval!frmDataSheet.Form.Filter =
"Forms!frmFinalApproval!frmDataSheet.Form.LotNumber = " & "'" & 1 & "'"
Forms!frmFinalApproval!frmDataSheet.Form.FilterOn = True
Thanks,
Brad
I have a main form and a sub form. I want to filter my sub form from my
main form.
What is wrong with this code?
I want to filter the sub form where LotNumber on the sub form is 1. The
button to run the filter is on the main form.
Main Form = frmFinalApproval
Sub Form = frmDataSheet
Forms!frmFinalApproval!frmDataSheet.Form.Filter =
"Forms!frmFinalApproval!frmDataSheet.Form.LotNumber = " & "'" & 1 & "'"
Forms!frmFinalApproval!frmDataSheet.Form.FilterOn = True
Thanks,
Brad