Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

acces db value to chkbox

Status
Not open for further replies.

rjkealey

Programmer
Feb 14, 2003
84
0
0
US
Hey all,
I am trying to pull the value of a field from an access db and if true I need to have chkbox value to checked.

I just need one value and one checkbox.
I have done research and can not find value from db to chkbox only opposite

I would appreciate any help

Thk
RJKealey
 
sorry here is what I was trying to do
**********************************
<%
If fldTitle="yes" Then
fldTitleBox.value=checked
Else
fldTitleBox.value=""
End If
%>


<td><input type="checkbox" name="fldTitleBox"></td>
***********************************
 
Try:

<%
x=""
If fldTitle="yes" Then x=" checked"
%>

<td><input type="checkbox" name="fldTitleBox" <%=x%>></td>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top