I can't seem to hit on the appropriate syntax wherein I can substitute a string variable containing the name of a table. E.g., strTBLName = tblRegister. I've tried the assortment of statements below without success. It would be hard to believe, but maybe such substitutions aren't supported in the VBA language set?
Code:curAcBal = DLookup("[CurBal]", strTBLName , "[Acctid] =" & AcID) curAcBal = DLookup("[CurBal]", "strTBLName", "[Acctid] =" & AcID) curAcBal = DLookup("[CurBal]", " & strTBLName & ", "[Acctid] =" & AcID)