J
Joyce
Hi, when inserting rows from an unbound datagridview to a database I
do something like:
for each row...
process data
next
in the "process data" routine I call a routine that goes through this
whole scenerio for each row:
Private Sub ProcessData
dim connection string,
dim connection object,
open connection,
build command object,
update the qty field in another table from the current row
insert row,
close connection
End Sub
Stupid question:
Is it necessary to go through all these steps for each row or should
the "for each row..next" routine be between the open and close
connection statements in the "process data" routine described above?
Thanks,
--Joyce P.
do something like:
for each row...
process data
next
in the "process data" routine I call a routine that goes through this
whole scenerio for each row:
Private Sub ProcessData
dim connection string,
dim connection object,
open connection,
build command object,
update the qty field in another table from the current row
insert row,
close connection
End Sub
Stupid question:
Is it necessary to go through all these steps for each row or should
the "for each row..next" routine be between the open and close
connection statements in the "process data" routine described above?
Thanks,
--Joyce P.