P
Paulo
I am trying to change using VB the link fields between a form and a subform.
I am using for this the code below:
Me.SubPerformanceReporting.LinkChildFields = "Month;Country"
Me.SubPerformanceReporting.LinkMasterFields = "Campo17;Combo28"
But because there was previously 3 link fields instead of the 2 that I
trying to put in place, the system returns a run-time error 2335, that
basically says "You must use the same number of fields when you set the
LinkChildFields and LinkMasterFields properties." Does this happen because
the 2 commands above are not executed together but one at a time (meaning
that when the system tries to execute the first line, we will have 2 child
fields and 3 master ones)? Is there a way around this?
Thanks in advance,
Paulo Tavares
I am using for this the code below:
Me.SubPerformanceReporting.LinkChildFields = "Month;Country"
Me.SubPerformanceReporting.LinkMasterFields = "Campo17;Combo28"
But because there was previously 3 link fields instead of the 2 that I
trying to put in place, the system returns a run-time error 2335, that
basically says "You must use the same number of fields when you set the
LinkChildFields and LinkMasterFields properties." Does this happen because
the 2 commands above are not executed together but one at a time (meaning
that when the system tries to execute the first line, we will have 2 child
fields and 3 master ones)? Is there a way around this?
Thanks in advance,
Paulo Tavares