Combined Filtering

sabzamsabzam Member Posts: 1,149
Dear All,

I need to have a filter on a customer list but using sort of comibned filtering. For example I need a list of all customers which begin with an A and the list of customer which begin with a B. Should I still use the setfilter and how?

Comments

  • bbrownbbrown Member Posts: 3,268
    Customer.SETFILTER("No.", '%1|%2', 'A*', 'B*');
    There are no bugs - only undocumented features.
  • sabzamsabzam Member Posts: 1,149
    I am sorry I haven't properly explained myself. Let me give you another example. Let 's say I want all customer whose name begin with A and all the customers whose name begin with a B and surname begin with a B.
  • bbrownbbrown Member Posts: 3,268
    Not possible with a single pass. You will need to pass thru the data twice and write results to a temp table.

    I haven't had much coffee yet, so maybe there's something I'm forgetting here.
    :D
    There are no bugs - only undocumented features.
  • diptish.naskardiptish.naskar Member Posts: 360
    Is sirname a new field or the user enters the sirname along with the name.. :?:
    Diptish Naskar
    For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
  • sabzamsabzam Member Posts: 1,149
    Ah no it had to be surname not sirname
Sign In or Register to comment.