ceeleelewis
Programmer
Hello...
I have this nagging issue with checkboxes that I just can't seem to get a grip on.
I have a form with two tables. One table pulls information from one tbl and displays (which works fine).The main issue is with the checkbox fields. I used the following code for the checkboxes to acheive my objective...
<td width="67"> <table border="1" width="11%" cellspacing="0" bgcolor="#FFFFFF" bordercolorlight="#cccccc" bordercolordark="#cccccc">
<tr>
<td width="100%" >
<% if xDNS = "yes" then %>
<input type="checkbox" name="DNS" value="yes" checked="checked" />
<%else%>
<input type="checkbox" name="DNS" value="yes"/>
<%end if %> </td>
I tried this, but I am not getting any results ... I have fields displaying from another table on the same form.
I look inside the db and see the results of the value.
The only difference between the two tables is the fact that fields that I want users to enter info are referencing the recordset object. (i.e.: xDNS = objRS("DNS"
)
I also used a response.write(objRS("DNS"
) to check out what's going into the db...
Could there be an issue with my datatype or extra spaces in my text string? At first, I used checkboxes for yes/no in Access but due the constant provider errors. I swithed the datatype to text.
Again thanks for the guidance on this issue.
I have this nagging issue with checkboxes that I just can't seem to get a grip on.
I have a form with two tables. One table pulls information from one tbl and displays (which works fine).The main issue is with the checkbox fields. I used the following code for the checkboxes to acheive my objective...
<td width="67"> <table border="1" width="11%" cellspacing="0" bgcolor="#FFFFFF" bordercolorlight="#cccccc" bordercolordark="#cccccc">
<tr>
<td width="100%" >
<% if xDNS = "yes" then %>
<input type="checkbox" name="DNS" value="yes" checked="checked" />
<%else%>
<input type="checkbox" name="DNS" value="yes"/>
<%end if %> </td>
I tried this, but I am not getting any results ... I have fields displaying from another table on the same form.
I look inside the db and see the results of the value.
The only difference between the two tables is the fact that fields that I want users to enter info are referencing the recordset object. (i.e.: xDNS = objRS("DNS"
I also used a response.write(objRS("DNS"
Could there be an issue with my datatype or extra spaces in my text string? At first, I used checkboxes for yes/no in Access but due the constant provider errors. I swithed the datatype to text.
Again thanks for the guidance on this issue.