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) »
  • Searching for contributions which source is not foo
Pages: [1]

Author Topic: Searching for contributions which source is not foo  (Read 885 times)

kaless

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
Searching for contributions which source is not foo
March 31, 2008, 02:37:23 am
Hello,

I have this problem:

I want to search for all contributions, which source is "not" foo...

The Problem is, that contributions with no contribution_source at  all are not found by the search builder. My SQL-Query:

SELECT contact_id, source FROM `civicrm_contribution`WHERE source != 'foo' OR source IS NULL

works fine.

Any hints are welcome :)
« Last Edit: March 31, 2008, 02:40:42 am by kaless »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Searching for contributions which source is not foo
April 01, 2008, 04:20:22 am
Since you know exact criteria/ query, you might want to check "Custom Search" component.

http://wiki.civicrm.org/confluence/display/CRMDOC/Custom+Search+Components

HTH

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Searching for contributions which source is not foo

This forum was archived on 2017-11-26.