CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Another question about searching and membership
Pages: [1]

Author Topic: Another question about searching and membership  (Read 306 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Another question about searching and membership
July 04, 2014, 08:55:55 am
I would like to search for individual contact who a) belong to a group and b) are either not members or whose membership status is chosen from a set of Membership Status (such as grace, expired, etc.). Is there a straight-forward way to accomplish this?

p.s. If I were doing this with SQL, I would probably wind up with two SELECTs that are UNIONed together; but I have no idea if the CiviCRM query building tools support this degree of flexibility.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Another question about searching and membership
July 04, 2014, 05:02:51 pm
If the group is a smart group then you may be able to do it via Search Builder.

Also, I seem to remember that the format you need to use with IN is (X,X,X)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Another question about searching and membership

This forum was archived on 2017-11-26.