A
AlanC
In order to give the user alternate ways of displaying info on a subform I
change the MasterLinked and ChildLinked (two fields in each) fields in the
click events of two buttons on the main form. This works the first time a
button is clicked but the next time it gives an error saying that the same
number of fields must be defined for both Master and Child, this can be
rectified by swapping the order of the two assignments. To overcome this I
trap the error do the assignments the opposite way around in the handler and
jump back in after the original assignment. It works but doesn't look pretty
and would give a quality auditor.
Can anyone suggest a better way?
Thanks
Alan
change the MasterLinked and ChildLinked (two fields in each) fields in the
click events of two buttons on the main form. This works the first time a
button is clicked but the next time it gives an error saying that the same
number of fields must be defined for both Master and Child, this can be
rectified by swapping the order of the two assignments. To overcome this I
trap the error do the assignments the opposite way around in the handler and
jump back in after the original assignment. It works but doesn't look pretty
and would give a quality auditor.
Can anyone suggest a better way?
Thanks
Alan