L
Lester Lane
I have many screens now that have subforms with many records that I
edit and then "process". In addition I have code that takes a
parameter and "produces" many records. At the moment I have
centralised code that performs these various functions (for ease of
editing but it is not Object Orientated) BUT it only copes with one
record at a time. Can I pass the whole recordset in one go?
Say I have a client who sells a stock, he will be one in many who may
sell on that day, so there is a recordset of this data with many
records. As part of the processing I will be adding to CGT records,
cashbook etc, for each client. So the procedure that deals with say,
adding to cashbook is called each time for each client within Loop or
While statements. There must be a smarter way as each time these
central procedures are called they setup recordsets (append only
normally) add data, and then close them, pointers most welcome. (I'm
using Access 2003, one file for tables and one for the queries/forms/
reports/code etc. Thanks
edit and then "process". In addition I have code that takes a
parameter and "produces" many records. At the moment I have
centralised code that performs these various functions (for ease of
editing but it is not Object Orientated) BUT it only copes with one
record at a time. Can I pass the whole recordset in one go?
Say I have a client who sells a stock, he will be one in many who may
sell on that day, so there is a recordset of this data with many
records. As part of the processing I will be adding to CGT records,
cashbook etc, for each client. So the procedure that deals with say,
adding to cashbook is called each time for each client within Loop or
While statements. There must be a smarter way as each time these
central procedures are called they setup recordsets (append only
normally) add data, and then close them, pointers most welcome. (I'm
using Access 2003, one file for tables and one for the queries/forms/
reports/code etc. Thanks