demogorgan
Registered User.
- Local time
- Today, 22:42
- Joined
- Nov 29, 2017
- Messages
- 37
Hi,
So I have a form where the user selects a customer from a combo box - this then applys a filter to only show the results for that customer chosen in the combo box.
This works fine but I would like it to only show outstanding orders for the customer also, this is indicated by a check box called Order_Complete.
I have tried to add in a second filter but I cannot for the life of me get it to work and it stops the first filter working. I am struggling to get my head around the use of the AND statement which I am assuming is what I am missing to get this to work.
Thank you in advance
Demo
So I have a form where the user selects a customer from a combo box - this then applys a filter to only show the results for that customer chosen in the combo box.
This works fine but I would like it to only show outstanding orders for the customer also, this is indicated by a check box called Order_Complete.
I have tried to add in a second filter but I cannot for the life of me get it to work and it stops the first filter working. I am struggling to get my head around the use of the AND statement which I am assuming is what I am missing to get this to work.
Code:
Private Sub cboTrustee_AfterUpdate()
If IsNull(Me.cboTrustee) Then
Me.FilterOn = False
Else
Me.Filter = "Trustee = """ & Me.cboTrustee & """"
Me.Filter = "Order_Complete = """ & Me.Order_Complete = 0 & """"
Me.Filter = strFilter
Me.FilterOn = True
End Sub
Thank you in advance
Demo