I forgot to add the code I was trying to use
vartemp=dlookup("[socialsecurity]","test results","[socialsecurity]=forms![test results]![socialsecurity]")
vartemp=dlookup("[test]","test results","[test]=forms![test results]![test]")
if...