In some Access 2003 VBA code have
strEval = "rsMatter_Details!" & !Database_Name
With the value of Database name in the first record
strEval correctly contains “rsMatter_Details!Matter_ID”
debug.print rsMatter_Details!Matter_ID prints the correct value
but debug.print Eval(strEval) gives me the error “"microsoft office access can't find the name ‘rsMatter_Details” you entered in the expression
Where am I going wrong? Can I use Eval in this way
Thanks.
strEval = "rsMatter_Details!" & !Database_Name
With the value of Database name in the first record
strEval correctly contains “rsMatter_Details!Matter_ID”
debug.print rsMatter_Details!Matter_ID prints the correct value
but debug.print Eval(strEval) gives me the error “"microsoft office access can't find the name ‘rsMatter_Details” you entered in the expression
Where am I going wrong? Can I use Eval in this way
Thanks.