C
Chris O'C via AccessMonster.com
At the end, why are you setting db = nothing and then db = currentdb again?
Might be the source of your "out of memory" error with all those db variables
allocated and not released each time the proc goes out of scope.
Why are you not exiting the loop as soon as the right form is found? As it
is, you force the code to execute through the name of every open form, even
if the right form was requeried 20 forms ago. Why isn't your code using the
dbfailonerror argument for the execute method so the transaction is rolled
back if part of it fails?
Chris
Microsoft MVP
Might be the source of your "out of memory" error with all those db variables
allocated and not released each time the proc goes out of scope.
Why are you not exiting the loop as soon as the right form is found? As it
is, you force the code to execute through the name of every open form, even
if the right form was requeried 20 forms ago. Why isn't your code using the
dbfailonerror argument for the execute method so the transaction is rolled
back if part of it fails?
Chris
Microsoft MVP