Got it working great.
Just want to share code incase someone has a similar issues. Just created a query to list all equipment with last entry hours
Code:
Private Sub EngineHrsTxt_BeforeUpdate(Cancel As Integer)
Dim lstEngineHrs As Long
lstEngineHrs = DLookup("[MaxofEquipment Hours]", "[lstEqHrsQ]", "[EQ ID] = '" & Me![EQ ID] & "'")
Debug.Print lstEngineHrs
Debug.Print EngineHrsTxt
If EngineHrsTxt < (lstEngineHrs - 30) Then
Dim LResponse As Integer
LResponse = MsgBox("Engine Hours entered is less than last reported hours! Please double check you typed it correctly!" & vbCrLf & "Last Hours Reported - " & lstEngineHrs & vbCrLf & "Engine Hours Entered - " & EngineHrsTxt & vbCrLf & " If this Number is correct click YES" & vbCrLf & "To go back and change the number CLICK NO", vbYesNoCancel Or vbExclamation, "Equipment Hours Error")
If LResponse = vbYes Then
Cancel = False
Else
Cancel = True
End If
ElseIf EngineHrsTxt > (lstEngineHrs + 30) Then
LResponse = MsgBox("Engine hours entered is more than 30 hours greater than last reported hours! Please double check you typed it correctly!" & vbCrLf & "Last Hours Reported - " & lstEngineHrs & vbCrLf & "Engine Hours Entered - " & EngineHrsTxt & vbCrLf & " If this Number is correct click YES" & vbCrLf & "To go back and change the number CLICK NO", vbYesNoCancel Or vbExclamation, "Equipment Hours Error")
If LResponse = vbYes Then
Cancel = False
Else
Cancel = True
End If
Else
Cancel = False
End If
End Sub