I need to know how to write the vb code for changing the Link Childs/Master properties for subforms. I have searched the Help files but not much "help"!
I have a form with 2 subforms. I want the Link Childs Field & Link Master Field properties for both subforms to be triggered by what is displayed in a field called GroupNumber located on the main form. If the field is null set child/master to x if not null set to y:
If IsNull(Me.GroupNumber) then
[set the link properties to X] (need code here)
Else
[set the link properties to Y] (need code here)
End If
I know I can access the property this way: "SubformName.LinkChildFields"
but I don’t know where to go from there.
Would appreciate an example of how this is done.
Thanks very much!!
I have a form with 2 subforms. I want the Link Childs Field & Link Master Field properties for both subforms to be triggered by what is displayed in a field called GroupNumber located on the main form. If the field is null set child/master to x if not null set to y:
If IsNull(Me.GroupNumber) then
[set the link properties to X] (need code here)
Else
[set the link properties to Y] (need code here)
End If
I know I can access the property this way: "SubformName.LinkChildFields"
but I don’t know where to go from there.
Would appreciate an example of how this is done.
Thanks very much!!