progenysend
Technical User
I've got a crosstab query that's being displayed in a form. I need it to display data only for certain managers based on a combo box. Here's the code:
Private Sub cmbMSCManagerDisplay_Click()
Me.MSC_CrosstabAPI.Form.Filter = "Managers.ID=" & "" & ""
Me.MSC_CrosstabAPI.Form.FilterOn = True
Me.Refresh
End Sub
cmbMSCManagerDisplay is the Combo Box
MSC_CrosstabAPI is the form
Manager.ID is the field being filtered
I keep getting a Compile Error saying Method or data member not found. MSC_CrosstabAPI is what is being highlighted.
This same code has worked other places, but it's not working here. I'm a Crystal Reports developer, but not that good with Access and VBA.
Thanks
Private Sub cmbMSCManagerDisplay_Click()
Me.MSC_CrosstabAPI.Form.Filter = "Managers.ID=" & "" & ""
Me.MSC_CrosstabAPI.Form.FilterOn = True
Me.Refresh
End Sub
cmbMSCManagerDisplay is the Combo Box
MSC_CrosstabAPI is the form
Manager.ID is the field being filtered
I keep getting a Compile Error saying Method or data member not found. MSC_CrosstabAPI is what is being highlighted.
This same code has worked other places, but it's not working here. I'm a Crystal Reports developer, but not that good with Access and VBA.
Thanks