Hi Everybody
When the “VIEW COUNTRY WISE PLAYERS” (Command21) on the 1st Form is clicked, the Form “PlayersEntryForm” opens and the Caption changes to “HIDE PLAYERS ENTRY FORM”. Again when the button is clicked the “PlayersEntryForm” hides. Following is the code which works fine.
Private Sub Command21_Click()
If Me.Command21.Caption = "VIEW COUNTRY WISE PLAYERS" Then
DoCmd.OpenForm "PlayersEntryForm"
Me.Command21.Caption = "HIDE PLAYERS ENTRY FORM"
Else
DoCmd.Close acForm, "PlayersEntryForm"
Me.Command21.Caption = "VIEW COUNTRY WISE PLAYERS"
End If
End Sub
What I want is, the “Command2” button on the “PlayersEntryForm” should be disabled.
Can anyone please guide me what line I should include in the above code.
Thanks in advance.