Link Fields Issue

  • Thread starter mattc66 via AccessMonster.com
  • Start date
M

mattc66 via AccessMonster.com

I am wanting to change the LinkChild and LinkMaster fields with a check box.
The if False is working, but when I check the box if True it doesn't change
the links. Any ideas on what I am doing wrong?

If ckLinkPF = True Then
Me.sfrmICSTOCK.LinkChildFields = "PROD_FAM"
Me.sfrmICSTOCK.LinkMasterFields = "cboProdFam"
End If

If chkLinkPF = False Then
Me.sfrmICSTOCK.LinkChildFields = ""
Me.sfrmICSTOCK.LinkMasterFields = ""
End If
 
T

tina

you might try setting the LinkMasterFields property *before* setting the
LinkChildFields property.

hth
 
Top