I'm trying to use field valuse to determine certian error msg. I think my code is good when all fields have data but if some are not filled in yet and are Null then I think its causing me trouble. If you look at my code Fields dat100 - dat106 all have data in them the user will enter data in fileds dat107 - dat113 I have this code in the after update command line on dat107 thru dat113 since the user can enter the data in any order they choose. So if any values are outside the spec. then I want to display the "POOS"
Code:
If ([dat107] - [dat100] < 0.1) Or ([dat107] - [dat100] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat108] - [dat101] < 0.1) Or ([dat108] - [dat101] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat109] - [dat102] < 0.1) Or ([dat109] - [dat102] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat110] - [dat103] < 0.1) Or ([dat110] - [dat103] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat111] - [dat104] < 0.1) Or ([dat111] - [dat104] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat112] - [dat105] < 0.1) Or ([dat112] - [dat105] > -0.1) Then
Me.POOS.Visible = True
ElseIf ([dat113] - [dat106] < 0.1) Or ([dat113] - [dat106] > -0.1) Then
Me.POOS.Visible = True
Else ' All probes in spec
Me.POOS.Visible = False
End If