Ask a Question related to ASP Database, Design and Development.
-
Jean #1
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
-
Updating Multi records
Is there any way to update muliple records in one database table in one go? -
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... -
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... -
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... -
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... -
Mohamed Hosam #2
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...to> Hello,
>
> I have a classical ASP web data entry form with 20 rows that allows users> 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
-
Jean #3
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...users> 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 allowsweb> to> > enter multiple records at once, my questions are:
> >
> > a.. How do you determine the number of rows entered by a user on the>> > 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



Reply With Quote

