I have two comboboxes on my form. They are both working correctly but I am getting a runtime error on the second box when a selection is made.
The first combobox is Contract Number and should filter alone. The second combobox is Task Order and it's results are dependent on the selection made in the Contract Number.
The Contract Number is filtering correctly but the Task Order combobox is getting a runtime error 13 Type mismatch.
Any help would be greatly appreciated!
Code:
Private Sub cboContractNum_AfterUpdate()
Me.Filter = "[ContractNum] = " & Chr(34) & Me.cboContractNum & Chr(34)
Me.FilterOn = True
Me.Requery
End Sub
Private Sub cboTO_AfterUpdate()
Me.Filter = "[ContractNum] = " & Chr(34) & Me.cboContractNum & Chr(34) And "[TO] = " & Chr(34) & Me.cboTO & Chr(34)
Me.FilterOn = True
Me.Requery
End Sub