I have several recordsets that I need to perform similar functions with. What I would like to do is create a common function and dymamically tell Access which recordset it should be processing. Does anyone know if there is a function like INDIRECT in Excel? I though EVAL might work, but haven't had any luck.
Basically, I want to construct the recordset name and then tell Access to treat the constructed name as if it's the actual recordset. So, if my recordset is named rs1, I want to get Access to return true or false for rs1.EOF, however, I want to use a variable (intCounter) to determine if I'm dealing with rs1 or rs2 or rs3 ....
Something like eval("rs" & intCounter & ".EOF"
and get that to return TRUE or FALSE.
Anyone with ideas?
Thanks in advance.
Basically, I want to construct the recordset name and then tell Access to treat the constructed name as if it's the actual recordset. So, if my recordset is named rs1, I want to get Access to return true or false for rs1.EOF, however, I want to use a variable (intCounter) to determine if I'm dealing with rs1 or rs2 or rs3 ....
Something like eval("rs" & intCounter & ".EOF"
Anyone with ideas?
Thanks in advance.