N
newguy
I'm trying to run a loop withing a public function.
Do While Not Myrecordset.EOF
Myrecordset.MoveNext
"Calculations Code"
Loop
After my first error, I declared Myrecordet:
Dim Myrecordset As Recordset
Which brings me to my second error and where I am stuck:
"Object variable or With block variable not set."
Doing some research I founnd I need to use the "set"
command. But, I have no idea what to set Myrecordset to.
Myrecordset is pointing to a subform, in case that
matters. I've been stuck on this for several days so any
help would be appreciated. Thank you
Do While Not Myrecordset.EOF
Myrecordset.MoveNext
"Calculations Code"
Loop
After my first error, I declared Myrecordet:
Dim Myrecordset As Recordset
Which brings me to my second error and where I am stuck:
"Object variable or With block variable not set."
Doing some research I founnd I need to use the "set"
command. But, I have no idea what to set Myrecordset to.
Myrecordset is pointing to a subform, in case that
matters. I've been stuck on this for several days so any
help would be appreciated. Thank you