D
Dap
I have a situation where a sub loops through a recordset
to perform calculations on each record through the use of
a public function. Within that recordset there is an
instance where the public funtion must use another loop to
search back again through the recordset to redo certain
calculations. My problem is I easily was able to have the
loop start with the first record in the recordset and
finish with the last in the sub, however, in the public
fundtion, I am not able to tell it anything more than
where to start (DoCmd.GotoRecord , , acFirst). How do I
tell the function to start the loop, and then end it when
there are no records left to look at anymore. I am
getting errors about objects and blocks. Please help if
you can or let me know if you need more information.
Thanks.
to perform calculations on each record through the use of
a public function. Within that recordset there is an
instance where the public funtion must use another loop to
search back again through the recordset to redo certain
calculations. My problem is I easily was able to have the
loop start with the first record in the recordset and
finish with the last in the sub, however, in the public
fundtion, I am not able to tell it anything more than
where to start (DoCmd.GotoRecord , , acFirst). How do I
tell the function to start the loop, and then end it when
there are no records left to look at anymore. I am
getting errors about objects and blocks. Please help if
you can or let me know if you need more information.
Thanks.