I want to create a tool that controls the way invoices are handled on my Invoice recorder.
so right now I made a listbox and I have:
which loads entries from the "Invoices" Table, from there I found I could do many useful things. There's one thing I can't find any good explanations online for.
I want to be able to filter these Invoices that are loaded into the listbox by the second column, which is "Accounts".
so if I entered "555" into ComboBox 1, (which loads unique account numbers found in the Invoices table) the Listbox would then refresh and only show Invoice rows where the second column equals "555".
Please help me figure out how I can accomplish this.
Thanks in advance to anyone willing to help!
Kyle,
so right now I made a listbox and I have:
Code:
Private Sub UserForm_Initialize()
ListBox1.RowSource = "Invoices"
End Sub
I want to be able to filter these Invoices that are loaded into the listbox by the second column, which is "Accounts".
so if I entered "555" into ComboBox 1, (which loads unique account numbers found in the Invoices table) the Listbox would then refresh and only show Invoice rows where the second column equals "555".
Please help me figure out how I can accomplish this.
Thanks in advance to anyone willing to help!
Kyle,