Hi, I have a form in Access 2010 with 3 ComboBox's and I'd like to have one of them ([Maj_CBx]) check the other two ([PCM_CBx] & [Sup_CBx]) for their current value and use it when it does it's filtering on the respective fields.
Here's what I have so far:
Private Sub Maj_CBx_AfterUpdate()
Me.Filter = "[Maj] = '" & Me.Maj_CBx & "'" & "[Name] = '" & Me.PCM_CBx & "'" & "[Supplier] = '" & Me.Sup_CBx & "'"
DoCmd.RunCommand acCmdApplyFilterSort
End Sub
This does give me an Run-Time error 3075 Syntax Error (missing operator) in query expression. Though it seems to have found the correct values for each combobox. I think the problem is that the code doesn't have a way to handle blanks/nulls which in this case [Sup_CBx] happens to be null, however I'm not sure how to do that.
Any help would be much appreciated!