|
| |
|
|
Mav44
Posts: 197 Joined: 6/25/2006 Status: offline
|
Multiple records from one submit - 10/5/2009 9:38:02
I have been reading through the site so I hope I am not duplicating with this question. My customer would like the add form to have 3 fields under "series" and "part number". The first field is a required value but if something is entered into the second or third fields this would create a completely new record using the same data (name, address, etc) that is on that form except for the line 2 of the two multiple entry items. Can this be done with some type of loop or by giving the extra field items an id requirement?
|
|
|
|
Mav44
Posts: 197 Joined: 6/25/2006 Status: offline
|
RE: Multiple records from one submit - 10/5/2009 12:26:58
Doing some reading and it looks like an additional page is the easy answer again. Lots of good info on this topic at http://www.frontpagewebmaster.com/m-187717/key-create%252Cmultiple%252Crecord/tm.htm#187717 I like the BetheBall solution and I have been trying to work on an add code that brings in the repeated data, lets you select the new data and submits to a new record. So far it looks like this but i need some help! if st = "dup" then id = request.querystring("id") sql = "select * from db23 where id = " & id rsadd.AddNew region = trim(rs("region")) distributor = trim(rs("distributor")) rsadd("series") = series rsadd("item") = item city = trim(rs("city")) state = trim(rs("state")) rs.close set rs = nothing end if
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|