Sorry for the delay in getting back to you.
Lets see if I have got this right. The user enters the job code and performance rating and then this selects which range of bonus is allowed?
OK, on the exit event of the bonus box, try the following:
upper = DLookup("[max]", "performance rating table", "[company performance rating] = '" & Me.[dept] & "' & [rating] = '" & Me.[perform] & "'"

lower = DLookup("[min]", "performance rating table", "[company performance rating] = '" & Me.[dept] & "' & [rating] = '" & Me.[perform] & "'"
If Me.bonus > upper Then MsgBox ("To high - Maximum is " & upper)
If Me.bonus < lower Then MsgBox ("To low - Minimum is " & lower)
Then in the close event of the form:
upper = DLookup("[max]", "performance rating table", "[company performance rating] = '" & Me.[dept] & "' & [rating] = '" & Me.[perform] & "'"

lower = DLookup("[min]", "performance rating table", "[company performance rating] = '" & Me.[dept] & "' & [rating] = '" & Me.[perform] & "'"
If Me.bonus > upper Then MsgBox ("To high - Maximum is " & upper)
If Me.bonus < lower Then MsgBox ("To low - Minimum is " & lower)
If Me.bonus <= upper And Me.bonus >= lower Then Close
Replace [max] with the field name for your maximum value.
Replace [min] with the field name for your minimum value.
Replace [company per..] & [dept] with the table name holding the allowable values.
Replace [dept] with the field that represents the job code.
replace [rating] & [perform] with whatever represents the job performance rating.
and finally replace [bonus] with whatever the bonus entry field is on your form.
I hope you understad what I am getting at here. If not, let me know and I will try something else.
Graham