Keith,
What Garry said is the way that I have done it.
This little bit of code from my subform may assist you;
Private Sub PartNumber_AfterUpdate()
Dim iAllow As Integer
iAllow = DLookup("[NumberAllowed]", "tblNumberAllowed")
If Me.RecordsetClone.RecordCount >= iAllow Then
MsgBox...