J
Joy M
Hi -
I was wondering when to open and close my recordsets. I am using DAO for
the first time.
Briefly, I loop through one recordset, and depending on certain field
values, modify/add records in other tables (i.e. recordsets).
I want to use functions for these updates/appends because some code is
reusable.
Also functions are a lot handier for organizing my code.
Do I define and open all the recordsets that I will be needing when I start
the outer loop (and pass them as Function parameters)
then close them at the end of the loop?
Or do I define and open these recordsets in the procedures where I will be
using them, then close them after?
I am talking about 10 recordsets altogether.
Is one way faster than the other? More than one user will be using this
program at a time.
Thanks for your advice. I can really use some help!
Joy
I was wondering when to open and close my recordsets. I am using DAO for
the first time.
Briefly, I loop through one recordset, and depending on certain field
values, modify/add records in other tables (i.e. recordsets).
I want to use functions for these updates/appends because some code is
reusable.
Also functions are a lot handier for organizing my code.
Do I define and open all the recordsets that I will be needing when I start
the outer loop (and pass them as Function parameters)
then close them at the end of the loop?
Or do I define and open these recordsets in the procedures where I will be
using them, then close them after?
I am talking about 10 recordsets altogether.
Is one way faster than the other? More than one user will be using this
program at a time.
Thanks for your advice. I can really use some help!
Joy