I'm creating a web application that will temporarily store detail level information until the user has finished entering, and then when prompted will update the database. My problem is this:
I need to be able to have the user go to the page and if there is no record, begin the first record. If a record exists, find the last one, increment plus one, and then add the next record. My boss (who is a little more literate in this than I) suggested something along the lines of this:
dim i = 0
while len(request.form("detail" & cInt(i)) = 0
i = i + 1
wend 'or something along this line and detail referencing a field in the request form.
value = request.form(field) & cInt(i)
value2 = request.form(field2) & cInt(i)
response.write value
etc.
How can I properly increment this so that each record will be saved separately until I am ready to execute the UPDATE command? Any help would be greatly appreciated!
I need to be able to have the user go to the page and if there is no record, begin the first record. If a record exists, find the last one, increment plus one, and then add the next record. My boss (who is a little more literate in this than I) suggested something along the lines of this:
dim i = 0
while len(request.form("detail" & cInt(i)) = 0
i = i + 1
wend 'or something along this line and detail referencing a field in the request form.
value = request.form(field) & cInt(i)
value2 = request.form(field2) & cInt(i)
response.write value
etc.
How can I properly increment this so that each record will be saved separately until I am ready to execute the UPDATE command? Any help would be greatly appreciated!