Simple checkbox population from Access

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Simple checkbox population from Access

    I am trying to populate a list of between 5-10 items which will be
    drawn from an Access Table to a form wherein the visitor can check
    boxes of each of the tabular items in order of preference (1st to
    4th). So I would like to have a routine which will populate a number
    of textboxes and checkboxes(4 each) for each item in the table but I
    am having difficulty with it. I can get a dropbox using select, but
    cant get multiple textboxes.

    Any ideas?
    Thanks in advance

    Jeremy
    Jeremy Guest

  2. Similar Questions and Discussions

    1. Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
      I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the...
    2. am i missing something simple asp:checkbox
      Hi I have a table in my db which basically stores users preferences as either a 1 or 0 (sql server tinyInt) I built the insert page using MM...
    3. update Access with checkbox
      Hi, strangly enough i can make all sorts of update pages with MM DW but not when a checkbox is involved. The checkbox must update an Access Dbase...
    4. Updating an Access DB Yes/No field with a Checkbox value
      I have a DataGrid that is configured to use the Edit/Update/Cancel concept correctly. My grid shows values from 5 database fields. I only need to...
    5. Simple Checkbox Question
      Hello, I have a checkbox on a form (i know very little about checkboxes) and I wanted it to be unchecked, so i set triple state to yes. Although...
  3. #2

    Default Re: Simple checkbox population from Access

    "Jeremy" <jeremy_zifchock@yahoo.com> wrote in message
    news:f9d85033.0401052036.442f4494@posting.google.c om...
    > I am trying to populate a list of between 5-10 items which will be
    > drawn from an Access Table to a form wherein the visitor can check
    > boxes of each of the tabular items in order of preference (1st to
    > 4th). So I would like to have a routine which will populate a number
    > of textboxes and checkboxes(4 each) for each item in the table but I
    > am having difficulty with it. I can get a dropbox using select, but
    > cant get multiple textboxes.
    >
    > Any ideas?
    > Thanks in advance
    >
    > Jeremy
    I think you may want to use radio buttons instead of checkboxes.

    Perhaps this will give you an idea.

    <html>
    <head>
    <title>4boxs.htm</title>
    <script language="javascript" type="text/javascript">
    <!--
    function build() {
    var num = 0;
    var tbl = "<table border='0'>\n";
    for (var i=0; i<10; i++) {
    tbl += "<tr>\n";
    for (var j=0; j<4; j++) {
    tbl += " <td>\n";
    tbl += " <input type='checkbox' name='box' value='Box" + num
    + "'>\n";
    tbl += " </td>\n";
    num++;
    }
    tbl += " <td>\n";
    tbl += " <input type='text' name='txt" + num + "' value=''>\n";
    tbl += " </td>\n";
    tbl += "</tr>\n";
    }
    tbl += "</table>\n";
    document.write(tbl);
    }
    // -->
    </script>
    </head>
    <body>
    <form method="post" onsubmit="return check()">
    <script language="javascript" type="text/javascript">
    <!--
    build();
    // -->
    </script>
    <input type="submit" value="Submit">
    <input type="reset" value="Clear">
    </form>
    </body>
    </html>



    McKirahan Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139