Per a previous posting I was given this code to insert into the on current of a sub form. When I click on a record in the list with a value of 1 the buttons disappear, when I click on a record with the value of 4 the buttons appear. The problem is that the buttons are appearing for all of the records on the form instead of just the ones with the value of 4. Is there a way to specify that the button should only appear on the record that has the value of 4?
Private Sub Form_Current()
If Me!selStatusID = 4 Then
Me!cmdRESPONDTOTECH.Visible = True
Else
Me!cmdRESPONDTOTECH.Visible = False
End If
End Sub
Private Sub Form_Current()
If Me!selStatusID = 4 Then
Me!cmdRESPONDTOTECH.Visible = True
Else
Me!cmdRESPONDTOTECH.Visible = False
End If
End Sub