Ask a Question related to ASP Database, Design and Development.
-
PiGei #1
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
row and, pressing the button, to insert all the data in the db table.
The db is Access.
How to do it?
Thanks
PGei
PiGei Guest
-
multi-table insert in Oracle 9i
Could someone please tell me what am I doing wrong that causes both of the following multi-table insert statements to fail with a "missing key"... -
Insert Multiple form records into DB
I have a form that populates with data from several queries and calcs, it creates about 70 rows of form data. I need for the form fields to be... -
insert multiple records with ASP.NET
Ok, I have seen the question asked, yet have not seen any answers. I know how to insert multiple records with .asp, but how would I do it with... -
Login - multi table insert for registrant; subsquent login insert page requests into joined 'Selection' Table
Question regards insert and updates in sql server for a simple login script that requires registration the first time and only "email address" upon... -
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... -
Brynn #2
Re: How to insert multiple records to the same table with a multi-fields form
The easiest thing would be to have the fields with the same name, and ending
with the row number
id1, name1, address1, city1, state1
id2, name2, address2, city2, state2
id3, name3, address3, city3, state3 etc...
then a hidden field telling you how many rows ...
hidden field called totalRows
then on your results page just do a update for each row
for n = 0 to CInt(Request.Form("totalRows")
yourSQL = your update statement where id = Request.Form("id" & n)
'// and the values are the form name with n for the number
next
I hope this helps point you in the right direction.
I will be creating a grid here shortly and putting it on my site ... it will
be a couple months though, for I am building some other open source things
first.
--
Brynn
[url]www.coolpier.com[/url]
*****
I reply and post to this newsgroup in an attempt to help other users.
I in no way guarantee the effects of scripts posted ...
and sometimes post partial scripts, untested to point users in the right
direction.
ALWAYS test my and everyone elses scripts before use ... duh ;)
*****
"PiGei" <james_milanNOSPAM@hotmail.com> wrote in message
news:%23AZ9cgV8DHA.4060@tk2msftngp13.phx.gbl...> 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
> row and, pressing the button, to insert all the data in the db table.
>
> The db is Access.
>
> How to do it?
>
> Thanks
> PGei
>
>
Brynn Guest



Reply With Quote

