How to determine multi records entered on the web form

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

  1. #1

    Default How to determine multi records entered on the web form

    Hello,

    I have a classical ASP web data entry form with 20 rows that allows users to
    enter multiple records at once, my questions are:

    a.. How do you determine the number of rows entered by a user on the web
    form?
    b.. How do you save multi records to database?
    Please assist me.


    Thanks!!!



    Jean


    Jean Guest

  2. Similar Questions and Discussions

    1. Updating Multi records
      Is there any way to update muliple records in one database table in one go?
    2. apostrophe entered into my form messing up my query
      When users enter an apostrophe and/or double quotes in any of the fields on my form it messes up the query. The query is reading it as an end quote...
    3. Formatting date when entered from a form
      I have a form that requires a date field to be entered. Although I have a message above this field that states the date has to be entered as...
    4. How to insert multiple records to the same table with a multi-fields form
      Hi all, is it possibile to insert multiple records in the same table? I imagine to build a multi-rows form, with the same number of fields per...
    5. Form validation for multi-rows and multi-columns
      Hello All, I have a classical ASP form with multi-rows and multi-columns that allows users to enter multiple records at once. How do you check...
  3. #2

    Default Re: How to determine multi records entered on the web form

    Try this:

    MRField = Request.Form("Field_Name")

    If MRField <> "" then
    ' Open a DB Connection here

    GetRecords = Split(MRField, Chr(13))
    For i = 0 to UBound(GetRecords)
    Query = "Insert Into DB(DBField) Values('" & GetRecords(i) & "')"
    Conn.Execute Query
    next

    ' Close Connection here

    End If


    Mohamed

    "Jean" <jeanwang@email.arizona.edu> wrote in message
    news:#GSunw#mDHA.1676@TK2MSFTNGP09.phx.gbl...
    > Hello,
    >
    > I have a classical ASP web data entry form with 20 rows that allows users
    to
    > enter multiple records at once, my questions are:
    >
    > a.. How do you determine the number of rows entered by a user on the web
    > form?
    > b.. How do you save multi records to database?
    > Please assist me.
    >
    >
    > Thanks!!!
    >
    >
    >
    > Jean
    >
    >

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003


    Mohamed Hosam Guest

  4. #3

    Default Re: How to determine multi records entered on the web form

    Thank you very much! I will apply this to my web form. Do you think the
    performance will be better if I use a stored procedure to insert each record
    (my web form provides up to 95 empty rows)?

    Another thing I was thinking about; is it possible to program the empty rows
    on the form as needed by a user? A new empty row would be displayed, if a
    user pressed [enter] key.



    Thanks again.



    Jean



    "Mohamed Hosam" <info@internetplus.biz> wrote in message
    news:uxNyhfAnDHA.3612@TK2MSFTNGP11.phx.gbl...
    > Try this:
    >
    > MRField = Request.Form("Field_Name")
    >
    > If MRField <> "" then
    > ' Open a DB Connection here
    >
    > GetRecords = Split(MRField, Chr(13))
    > For i = 0 to UBound(GetRecords)
    > Query = "Insert Into DB(DBField) Values('" & GetRecords(i) & "')"
    > Conn.Execute Query
    > next
    >
    > ' Close Connection here
    >
    > End If
    >
    >
    > Mohamed
    >
    > "Jean" <jeanwang@email.arizona.edu> wrote in message
    > news:#GSunw#mDHA.1676@TK2MSFTNGP09.phx.gbl...
    > > Hello,
    > >
    > > I have a classical ASP web data entry form with 20 rows that allows
    users
    > to
    > > enter multiple records at once, my questions are:
    > >
    > > a.. How do you determine the number of rows entered by a user on the
    web
    > > form?
    > > b.. How do you save multi records to database?
    > > Please assist me.
    > >
    > >
    > > Thanks!!!
    > >
    > >
    > >
    > > Jean
    > >
    > >
    >
    >
    > ---
    > Outgoing mail is certified Virus Free.
    > Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    > Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
    >
    >

    Jean 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