I'm trying to pull a value into one of my forms and most of the values are stored in 1 table. But there are a few exceptions where there is no record for a group in that table and I need to pull it from a different table. I can't quite figure out how to do that. I was thinking about using an isNull but will that work if it just doesn't find a match on GroupNumber and Package in the "Claims" table? Or is there another function I can use where I check to see if the GroupNumber-Package (Primary Key is a combo on those 2 fields) exists in the "Claims" table and if it doesn't, pull the value from this other table?
Code:
=DLookUp("[CLAIMS_AVE_PMPM]","Claims","GroupNumber=valGroupNumber AND Package=valPackage")