I mean the values like 0.10825 in the first test. If you can get that from a table, you don't need all the code you have now. My entire checkmeasurements function might look like:
Code:
Dim VariableName As Double
VariableName = ValueIGetFromTheTableSomehow
If Val(Me.txtMeasurement1) > Val(VariableName) Then 'value comparison
MsgBox ("Measurement entered is too large") 'what it does if measurement is wrong
Me.txtMeasurement1.SetFocus
checkmeasurements = False
ElseIf Val(Me.txtMeasurement2) > Val(VariableName) Then
MsgBox ("Measurement entered is too large")
Me.txtMeasurement2.SetFocus
checkmeasurements = False
ElseIf Val(Me.txtMeasurement3) > Val(VariableName) Then
MsgBox ("Measurement entered is too large")
Me.txtMeasurement3.SetFocus
checkmeasurements = False
Else
checkmeasurements = True
End If