SeadnaS
Programmer
- May 30, 2011
- 214
I'm using this if statement:
If Me.MODEL_NO.Value Like "LAC225*" Then
If Me!CHILD_SUB.Form.[1] And Me!CHILD_SUB.Form.[2] And Me!CHILD_SUB.Form.[3] And Me!CHILD_SUB.Form.[4] And Me!CHILD_SUB.Form.[5] And Me!CHILD_SUB.Form.[6] And Me!CHILD_SUB.Form.[7] And Me!CHILD_SUB.Form.[8] >= 18.5 Then
Me!passfail1.Value = "Pass"
Else: Me!passfail1.Value = "Fail"
End If
I have text boxes on the subform named 1 to 8 i need the statement to ignore text boxes with 0. So if the user doesn't enter a number in box 8 it will act as though there is only 7 numbers.
Any help much appreciated!
If Me.MODEL_NO.Value Like "LAC225*" Then
If Me!CHILD_SUB.Form.[1] And Me!CHILD_SUB.Form.[2] And Me!CHILD_SUB.Form.[3] And Me!CHILD_SUB.Form.[4] And Me!CHILD_SUB.Form.[5] And Me!CHILD_SUB.Form.[6] And Me!CHILD_SUB.Form.[7] And Me!CHILD_SUB.Form.[8] >= 18.5 Then
Me!passfail1.Value = "Pass"
Else: Me!passfail1.Value = "Fail"
End If
I have text boxes on the subform named 1 to 8 i need the statement to ignore text boxes with 0. So if the user doesn't enter a number in box 8 it will act as though there is only 7 numbers.
Any help much appreciated!