export expired members

Discussion in 'Troubleshooting' started by vacc_webmaster, Nov 23, 2010.

  1. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    They are same subscriptions, one is expired one is active for members. In the export function in amember, its listing in Excel they are expired members.what is the fix to show only those who hold an expired subscription that doesn't have an active subscription?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    you can do such export from phpMyAdmin
    run this query then export results into CSV:
  3. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    Ok that is great for me I guess but the one that will be using the system to export into a mail merge will not be able to do this.

    How can this be done without using an SQL statement?

    Thanks
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Currently this can't be done from aMember CP. Will add such functionality to next versions.
  5. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    OK. Great I think that is providing the same results. I noticed it didn't export the expiration date from the sql statement results. How would I include the expiration date and the subscription in which is expired? (It's required since its being included in the mailmerge)

    Thank you
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Hmm, what if user have two subscriptions for two different products, which one should be exported?
  7. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    I'm on version 3.1.9.
    I need a easy method to export all members between 1/1/2011 and the current date that has an any expired subscription between that date, BUT do not include members who has an active subscription of any sort during that time frame.

    Members renew using the same subscription (5 different types). If it expires on 2/20/2011 but they renew on 2/25/2011 they are exported to the list as expired.

    Any thoughts?

    Thanks
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can do this using this query:
    Code:
    select * from amember_members m left join amember_payments p on m.member_id = p.member_id where m.status =2 and p.expire_date > '2011-01-01'
    
    This will return all members who expired after 01/01/2011

Share This Page