Once again, I'm stuck.
I have a SQL DB with a table that has 2 fields employeeemail(nvarchar 100) and Active(bit).
I want to rotate the email address that a web form gets sent to. So, all email addresses are set to inactive except the first one. Once the form submits and the data sent to the one active address, I want to set that record to inactive and the next one to active. Any recommendations? Suggestions to accomplish this are a more simple fashion?
I can handle the query to pull the email, I just don't know how to select the next record in line to activate it.
Thanks
I have a SQL DB with a table that has 2 fields employeeemail(nvarchar 100) and Active(bit).
I want to rotate the email address that a web form gets sent to. So, all email addresses are set to inactive except the first one. Once the form submits and the data sent to the one active address, I want to set that record to inactive and the next one to active. Any recommendations? Suggestions to accomplish this are a more simple fashion?
I can handle the query to pull the email, I just don't know how to select the next record in line to activate it.
Thanks