By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,027 Members | 1,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,027 IT Pros & Developers. It's quick & easy.

CheckBox value, update record

P: 2

I have a problem with checkbox value on the page connected to MS Access.
Ms Access field is: Independent - Data Type: Yes/No
My code is:

<form name="form" method="post" action="update_entry.asp">
<input type="checkbox" name="Independent"/>Independent
<input name="Submit" type="submit" class="formluarz" value="Update">

and now update_entry.asp code:

if (Request.Form("Independent")<>"") then
rsUpdateEntry.Fields("Independent") = "on" 'line no 51
end if

I want to update Independent checkbox value in database but I'm getting the error:
Provider error '80020005'
Type mismatch.
/update_entry.asp, line 51

I have other fields such as textboxes and they are updated without problems. Only checkboxes left:(
Can anybody help me because I already spend a couple of hours and still no result:(
Sep 26 '06 #1
Share this Question
Share on Google+
1 Reply

P: 2
OK I found the problem: use True instead of on
Sep 26 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.