Simple Radio Button Question

Results 1 to 2 of 2

Thread: Simple Radio Button Question

  1. #1
    Todd Ryks Guest

    Default Simple Radio Button Question

    I have an ASP form that displays data from an Access database. I have many true-false option groups on the form. <BR><BR>I need these groups to show the current value of the field of the current record (If it&#039s "false" in the database, I want the false button to be checked on the form).<BR><BR>I also want to be able to update that field in the database (this form already updates text fields and dropdown lists correctly).<BR><BR>Here is the current code for two of my option groups: <BR>&#060;tr><BR> &#060;td width="25%" align="right" height="21">New Account?&#060;/td><BR> &#060;td width="18%" align="left" height="21"><BR> &#060;input type="radio" name="NEWACCT" value="T" id="fp2">&#060;label for="fp2">T&#060;/label> <BR> &#060;input type="radio" name="NEWACCT" value="F" id="fp1" checked>&#060;label for="fp1">F&#060;/label>&#060;/td><BR> &#060;td width="20%" align="right" height="21">Renewed Account?&#060;/td><BR> &#060;td width="37%" align="left" height="21"><BR> &#060;input type="radio" name="RENEWEDACCT" value="T" id="fp5">&#060;label for="fp5">T&#060;/label><BR> &#060;input type="radio" name="RENEWEDACCT" value="F" id="fp6" checked>&#060;label for="fp6">F&#060;/label>&#060;/td><BR> &#060;/tr><BR><BR>How do I make the radio button show the current value of the current record?<BR>How do I update the database after changes have been made?<BR><BR>Thanks for the help!<BR>

  2. #2
    Chris Willey Guest

    Default RE: Simple Radio Button Question

    &#060;input type="radio" name="NEWACCT" value="T" id="fp2"&#060;% If rs("newacct") = "T" Then &#037;&#062; checked&#060;% End If &#037;&#062;><BR>&#060;input type="radio" name="NEWACCT" value="F" id="fp1"&#060;% If rs("newacct") = "F" Then &#037;&#062; checked&#060;% End If &#037;&#062;>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •