Jump to content
  • 0
Sign in to follow this  
Scott

Change End Dates

Question

I have a table who's population are a number of memberships with a "Start_Date" and "End_Date".

I would like to run a trigger that renews the memberships "End_Date " with todays date using a timestamp when the membership field "renew" is set and updated to "YES".

Following this an automated email is triggered to email the members "Email_Address" when the renew is set to "Yes" with the new "End_Date".

I have tried doing this with a trigger in the same table but have a level 2 error and understand that update can be triggered in the same table.

Does anyone have a work around for this.

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Thanks for the response BaySunshine....I have the trigger working whereby I insert records into a different table and then bring them back into the original table with the trigger on it....However the email section of the trigger is not working???? Thanks for your help....

See below screen shot of the trigger...

Screen Shot 2018-07-11 at 12.56.52 pm.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×