Hi
To help me understand a little more of what you are trying to do please answer these questions.
You posted the following code:
Code:
Private Sub Passit(Passit As Integer)
For Passit = 0 To 60 Step 15
If [OvenTemperatureValues]![Pass/Fail] = "Pass" Then
Next
If Passit = 60 Then
ForeColor.TextBox = Green
Me.Text50 = "PASS"
Else
ForeColor.TextBox = Red
Me.Text50 = "FAIL"
End Sub
Where is this code? (Form Module, Report Module or General Module)
In the following line of code:
If [OvenTemperatureValues]![Pass/Fail] = "Pass" Then
Is [Pass/Fail] the name of a control on a form or report and if so, what sort of control is it? A textbox perhaps?
What is [OvenTemperatureValues] ?