Hi,
I have a query which returns values from a column in my table and a split form which shows the table.
I have a command button which I want to use to filter the records. I know how to use VBA filter strings for example this one which filters according to a combo box value:
My question is: How do I re-write the string so that strLastName is compared to the results of a query which is called FilterCalls, instead of being compared to the value of thye combo box?
Many thanks in advance for your help!
I have a query which returns values from a column in my table and a split form which shows the table.
I have a command button which I want to use to filter the records. I know how to use VBA filter strings for example this one which filters according to a combo box value:
Code:
Me.Filter = "strLastName = '" & Me.ComboFilterLastName.Value & "'"
DoCmd.RunCommand acCmdApplyFilterSort
My question is: How do I re-write the string so that strLastName is compared to the results of a query which is called FilterCalls, instead of being compared to the value of thye combo box?
Many thanks in advance for your help!