I have a form (Frm Trade Tickets) and a subform (Frm Trade Tickets Subform Detail) that has a link child (PTS) and master (User ID) relationship which I set as an event procedure when the form is open
Me.Frm_Trade_Tickets_Subform_Detail.LinkChildFields = "PTS"
Me.Frm_Trade_Tickets_Subform_Detail.LinkMasterFields = "User ID"
I am struggling to figure out how to do the following:
In the subform I have a button that I want to be able to when clicked and the text on the button says "ALL" that the child / master relationship would be empty and when the text on the button says "Filter" that the child / master relationship would be populated.
'Execute condition if Button Caption = All
If Me.Change_Coverage_Command_Button.Caption = "All" Then
Me.Change_Coverage_Command_Button.Caption = "Filter"
?????????? LinkChildFields = " "
?????????? LinkMasterFields = " "
'Else Button Caption = Filter
Else
Me.Change_Coverage_Command_Button.Caption = "All"
?????????? LinkChildFields = "PTS"
?????????? LinkMasterFields = "User ID"
End If
I appreciate any help. - thanks
Me.Frm_Trade_Tickets_Subform_Detail.LinkChildFields = "PTS"
Me.Frm_Trade_Tickets_Subform_Detail.LinkMasterFields = "User ID"
I am struggling to figure out how to do the following:
In the subform I have a button that I want to be able to when clicked and the text on the button says "ALL" that the child / master relationship would be empty and when the text on the button says "Filter" that the child / master relationship would be populated.
'Execute condition if Button Caption = All
If Me.Change_Coverage_Command_Button.Caption = "All" Then
Me.Change_Coverage_Command_Button.Caption = "Filter"
?????????? LinkChildFields = " "
?????????? LinkMasterFields = " "
'Else Button Caption = Filter
Else
Me.Change_Coverage_Command_Button.Caption = "All"
?????????? LinkChildFields = "PTS"
?????????? LinkMasterFields = "User ID"
End If
I appreciate any help. - thanks