Another combo question

D

David Whitaker

I am trying to sort by 2 conditions combined
a combobox and a option group

when I try to combine the two, my sort comes back blank
the code will work with one or the other but not combined, I think my
problem is how I am combining the two

Me.Filter = "stock = 'inventory'" = "dim = """ & Me.Combo75.Value &
""""
Me.FilterOn = True

What did I get wrong?
 
M

Marshall Barton

"David Whitaker"
I am trying to sort by 2 conditions combined
a combobox and a option group

when I try to combine the two, my sort comes back blank
the code will work with one or the other but not combined, I think my
problem is how I am combining the two

Me.Filter = "stock = 'inventory'" = "dim = """ & Me.Combo75.Value &
""""
Me.FilterOn = True


You can use And and Or to combine multiple criteria.

Me.Filter = "stock = 'inventory' AND dim = """ &
Me.Combo75.Value & """"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top