Hi Everyone,
This one should be simple but is still cooking my noodle. I have a sub-form the finds and displays records where two conditions meet. In reach record I have placed and install button. If the part is not available, I would like to set the button to Visible = False. The code below does a good job of turning the button invisible, but it turns them off for all the records. Is there a way to be selective about it.
I am thinking that this is either a For Each Loop (which I am still learning) or a record issue. Both of which I'm not sure how to fire. As always, many thanks in advance for your input.
This one should be simple but is still cooking my noodle. I have a sub-form the finds and displays records where two conditions meet. In reach record I have placed and install button. If the part is not available, I would like to set the button to Visible = False. The code below does a good job of turning the button invisible, but it turns them off for all the records. Is there a way to be selective about it.
Code:
If Me.txt_avail = "No" Then
Me.cmd_install.Visible = False
End If
I am thinking that this is either a For Each Loop (which I am still learning) or a record issue. Both of which I'm not sure how to fire. As always, many thanks in advance for your input.