here is the code
So this is just part of the code I have to do this for 26 fields (read 27 - read 52) thay each have a different range but the msgbox is the same. Is there a better way to do this?
jon
Code:
If (Forms![Frm1]![pRF verification].Form![read27]) >= 48 And (Forms![Frm1]![pRF verification].Form![read27]) <= 52 Then
Me.[prffailed].Visible = False
Me.[prfpassed].Visible = True
Else ' outside spec
Me.[prffailed].Visible = True
Me.[prfpassed].Visible = False
End If
If (Forms![Frm1]![pRF verification].Form![read28]) >= 44 And (Forms![Frm1]![pRF verification].Form![read28]) <= 56 Then
Me.[prffailed].Visible = False
Me.[prfpassed].Visible = True
Else ' outside spec
Me.[prffailed].Visible = True
Me.[prfpassed].Visible = False
End If
If (Forms![Frm1]![pRF verification].Form![read29]) >= 73 And (Forms![Frm1]![pRF verification].Form![read29]) <= 77 Then
Me.[prffailed].Visible = False
Me.[prfpassed].Visible = True
Else ' outside spec
Me.[prffailed].Visible = True
Me.[prfpassed].Visible = False
End If
So this is just part of the code I have to do this for 26 fields (read 27 - read 52) thay each have a different range but the msgbox is the same. Is there a better way to do this?
jon
Last edited: