Sorry, I'm not thinking very well today!
The code below that I suggested is complete gibberish. it doesn't include the tablename or where clause of the dlookup:
=dlookup(iif(case1, 1, iif(case2, 2, iif(case3, 3, 0)))
You could use an iif statement inside a dlookup to specify, for example, which fieldname to return, in the following way:
=dlookup(iif(case1, "[field1]", iif(case2, "[field2]", iif(case3, "[field3]", 0))), "[Tablename]", "[whereclause]"
Alternatively, you could use a similar iif structure as part of the where clause or even the table clause. You'll probably find that using the iif's inside a dlookup this way is too messy and cumbersome, but I wanted to correct the misinformation I gave in a previous post. -- Herb