if (request.empid != null) { // create an updatable cursor on the EMPLOYER table. if (!dbCheck()) { redirect("../error.htm?error=dbfail"); } cursor = database.cursor("select active from employer where empid='" + request.empid + "'", true); cursor.next(); if (cursor.active == "Y") cursor.active = "N" else cursor.active = "Y" cursor.updateRow("EMPLOYER"); cursor.close(); } // END IF redirect("empacct.htm");