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
Expand|Select|Wrap|Line Numbers
- ...
- Private Sub ViewAllButton_Click()
- Forms!BaseForm.MasterRecordset = Members.Assign
- Forms!BaseForm.ChildRecordset = Members.Assign
- End Sub
- ...
I appreciate your help!