Hi Arden,
Thank u very much for your answer.
The reason that I´m using two checkbox is becuause one box is for the book från False to True and that work very well, and the other box is for the books from True to False, that doesn´t work at all.
I had already tried with value="off", like you mention it but nothing happend, the value in the database is still True:
Otillgänglig
<%
If synlig = "off" Then
rsBok("status") = False
End If
%>
I wondering if it can be something with the Stored Procedure in the SQL database. I had already the variable declared:
CREATE PROCEDURE sp_ChangeBok (@Status as bit ) AS
set @Status = rtrim(ltrim(@Status))
if len(@Status) < 1
begin
select @Status = 0
end
else
begin
select @Status = 1
end
update BOK
set STATUS = @Status
Thank you in advance,
Eric
Hi Eric,
Why are you using 2 check boxes for one field? 1 will work and it is less complicated.
<%
If synlig = "on" Then
rsBok("status") = True
else
rsBok("status") = False
End If
%>
You are setting both check boxed to "value=on", the field can not be true and false at the same time.
If you have to have 2 check boxes set one to "value = off". Also add code to check both boxes to make sure one is on and the other is off.
hth
Arden