Hi!! I've been trying to figure this out..
I have a form with a subform and I need to display 2 different things in this subform, that's why I came with the idea of changing the Link Child Field and the Link Master Field.
This change should happen when clicking a button, so it would be helpful if somebody has an idea of how to change these fields in Visual Basic!!
The links between the forms actually work if I change the fields manually, but I want to use a button to do the same.
Name of the form: BaseForm
Name of subform: BaseSubform
Name of the table in use = Members
Name of the Field of the table I want to use = Assign
I appreciate your help!
I have a form with a subform and I need to display 2 different things in this subform, that's why I came with the idea of changing the Link Child Field and the Link Master Field.
This change should happen when clicking a button, so it would be helpful if somebody has an idea of how to change these fields in Visual Basic!!
The links between the forms actually work if I change the fields manually, but I want to use a button to do the same.
Name of the form: BaseForm
Name of subform: BaseSubform
Name of the table in use = Members
Name of the Field of the table I want to use = Assign
Code:
...
Private Sub ViewAllButton_Click()
Forms!BaseForm.MasterRecordset = Members.Assign
Forms!BaseForm.ChildRecordset = Members.Assign
End Sub
...
I appreciate your help!
Comment