Hello,
I made a combobox with value list (All,Paid,Unpaid) to filter a subform
and put a VBA code in After Update Event, it works for Paid and Unpaid because it's mach the same choices in my query. I want help to make (All)option display all paid and unpaid record
Code is:
Thank you
I made a combobox with value list (All,Paid,Unpaid) to filter a subform
and put a VBA code in After Update Event, it works for Paid and Unpaid because it's mach the same choices in my query. I want help to make (All)option display all paid and unpaid record
Code is:
Code:
Private Sub cboStatus_AfterUpdate()
Dim cstatus As String
cstatus = " select * from Client_Invoice_Status where ([Company]= '" & Me.cboCompany & "') And ([Status]= '" & Me.cboStatus & "') And ([PolicyType]= '" & Me.cboPolicyType & "' )"
Me.Client_Status.Form.RecordSource = cstatus
Me.Client_Status.Form.Requery
End Sub
Thank you