Setting Link Master Field in VB

mnbuckland

New member
Local time
Today, 22:23
Joined
Dec 5, 2008
Messages
4
Can anyone assist in how to set the Link Master Field and the Link Child Field property in Visual Basic.
I need to set the property in the Open Report action

Thanks in advance
 
Welcome to the forum.
I'd do something like this:
Code:
Private Sub Report_Open(Cancel As Integer)
[COLOR="Green"]   'reference the subreport control[/COLOR]
   With Me.YourSubreportControl
[COLOR="Green"]      'set a couple of its properties[/COLOR]
      .LinkMasterFields = "YourReportLinkField"
      .LinkChildFields = "YourSubreportLinkField"
   End With
End Sub
 
Thank you for the prompt reply. Entered the code as suggested and the report works fine.

Thanks again
 

Users who are viewing this thread

Back
Top Bottom