I have a continuous form and am trying to show different controls based on the model_no of the current form. Of the 4 forms (detail records) currently on screen, 1 record has a model_no of 601 and the txtGroutSerialNo control should be visible and the txtMFGDate control should be invisible based on the code below. But the txtMFGDate control is visible on all detail records including the model_no 601 record and the txtGroutSerialNo control is invisible.
Any idea why I can't get the txtGroutSerialNo control to display when model_no is in the 600 range?
Here is the On Current event code:
Private Sub Form_Current()
If Not IsNull([edge_model_no]) Then
If CInt([model_no]) >= 600 And CInt([model_no]) < 700 Then
txtMFGDate.Visible = False
txtGroutSerialNo.Visible = True
Else
txtGroutSerialNo.Visible = False
txtMFGDate.Visible = True
End If
End If
End Sub
Thanks in advance for your help,
-Russ
Any idea why I can't get the txtGroutSerialNo control to display when model_no is in the 600 range?
Here is the On Current event code:
Private Sub Form_Current()
If Not IsNull([edge_model_no]) Then
If CInt([model_no]) >= 600 And CInt([model_no]) < 700 Then
txtMFGDate.Visible = False
txtGroutSerialNo.Visible = True
Else
txtGroutSerialNo.Visible = False
txtMFGDate.Visible = True
End If
End If
End Sub
Thanks in advance for your help,
-Russ