I created a string filter in a private sub and I get an error;
"Can't find the field referred to in your expression"
I have used this same expression in a Public sub and it works fine. What do I need to do differently to get it to work in the Private sub?
strFILTER = [qryrptComprehensiveRevenue_byClient_REDO3]![ClientID] = [Forms]![frmHubReports]![cmbClientNumber]
DoCmd.OpenReport strRPT, acViewPreview, strFILTER
"Can't find the field referred to in your expression"
I have used this same expression in a Public sub and it works fine. What do I need to do differently to get it to work in the Private sub?
strFILTER = [qryrptComprehensiveRevenue_byClient_REDO3]![ClientID] = [Forms]![frmHubReports]![cmbClientNumber]
DoCmd.OpenReport strRPT, acViewPreview, strFILTER