Ask a Question related to ASP Database, Design and Development.
-
Renie83 #1
Getting a comma separated list of all records from a view.
What I would like to do is add records from a view to a table based
upon user input. What is making it hard is since I can't give an
identity field to a view I don't know how to call to a certain row.
What I have is a form that brings records from a view into a page and
places a text box at the end of each row:
do until rs3.eof
stPurchase= rs3("PURCHASE ORDER NUMBER")
strLine = rs3("LINE NUMBER")
strPDate= rs3("PURCHASE DATE")
strPartNo= rs3("STOCK NUMBER")
// set my variables for the fields being brought in
<tr>
<td><%=rs3("PURCHASE ORDER NUMBER")%></td>
<td><%=rs3("PURCHASE DATE")%></td>
<td><%=rs3("STOCK NUMBER")%></td>
// display fields being brought in
<td><input type="text" size=10 name="estDel" value=""></td>
// putting a text box behind fields brought in
</tr>
rs3.movenext
loop
I want to be able to do something like this:
if request.form("submit") <> "" then
// if something has been submitted do this
dim myArray
dim strDel
// dim array and input value
strDel = request.form("estDel")
myArray = split(strDel, ",")
// get the separate values of strDel to try to use as a way to find
the row of data
for i = 0 to UBound(myArray)
if myArray(i) <> " " then
// if there is a value entered into the text box then insert the
values in that row into a table
insert into table1 (PO, LN, PD, ST, DELDATE) Values ('" &
strPurchase & "', '" & strLine & "', '" & strPDate & "', '" &
strPartNo & "', '" & strDel & "')
end if
next
// check next
If anyone knows how to do this or a different way please let me know.
Any help would be greatly appreciated!
Renie83 Guest
-
Exporting Metadata (caption information) fromJPEGS to a comma separated value (CSV) file
Here is my dilemma. I am an archivist at an arts organization and we are in the process of digitizing many of our materials to post them on the web... -
how do you create a comma separated list of the columnnames in a table?
hey everyone, i'm trying to create a loop function to run through a list of columns where image names are stored within records. is it possible to... -
how to parse blank-line-separated records
Hi, all -- I'm wrestling with a data file containing owners and contact info and it suddenly occurred to me that I could probably change my... -
How to handle a comma separated file with imbedded commas
On Tuesday, September 2, 2003, at 02:19 PM, JOHN FISHER wrote: Text::CSV_XS from the CPAN will do all the work for you. I use it all the... -
comma separated to SQL Server DB table
http://www.aspfaq.com/2248 "John" <john.reed@intel.com> wrote in message news:0b7c01c344bb$70f47d30$a001280a@phx.gbl...



Reply With Quote

