There are more than 1 different possibilities. In fact there are many and I
only included the one. I appreciate your help with that. That part of it now
works. Now my problem is that the statement is too long and it won't let me
write everything that I need in there without returning the statement that it
is too complex? Any suggestions for how I handle this?
Without knowing what it is that you want to "handle", it's very hard
to say. You might need a more complex Switch; you might need to write
custom VBA code; but you might also be able to develop a query
solution, perhaps by creating a "range" table with fields like Down,
DistanceLow, DistanceHigh, and Description. (I take it this is
American football...?)
You could have one row for each situation:
Down DistanceLow DistanceHigh Description
2 3 7 "2 & Medium"
2 7 12 "2 & Long"
2 0 3 "2 & Short"
2 12 25 "2 & Deep"
4 25 100 "Desperate Quarterback"
You can create a Query joining this to your other table by a "Non Equi
Join"
.... INNER JOIN tblTranslate
ON yourtable.Down = tblTranslate.Down
AND yourtable.Distance >= tblTranslate.DistanceLow
AND yourtable.Distance < tblTranslate.DistanceHigh
This has the advantage that you can change the descriptions or the
cutoff distances in a table, rather than digging through a long
complex expression or VBA code.
John W. Vinson[MVP]