Hey guys, I have a table that has a field called Status. There are two possibilities for this field..."Active" or "Inactive".
I have a Change status button on my form and I want to be able to reverse what is in that field based on whether a check box was checked.
Detecting if the check box was checked is no problem, but How do i reverse what is in the Status field?
For instance, if it has a Value of "Active" then I want to change it to "Inactive".
Like
$SQL = "UPDATE tblUsers
(IF Status = "Active" THEN SET Status = "Inactive") ||
(IF Status = "Inactive" THEN SET Status = "Active")
WHERE UserID = '$UserID'";
Of course that doesnt work, but I hope you see what I mean.
Thanks! :o