On a form I have two listboxes and a subform that is continuous.
The two listboxes are "Products" and "Code Sets". The idea is that you select a product and a code set and it will show you the codes associated. The list is filtered by a link master/child to the two fields.
I am trying to make it that when you only have a Product specified, it will show you all codes from all sets. When I go from two linkfields to one, it gives me run-time error '2335'. You must specify the same number of fields when you set the LinkChildFields and LinkMasterFields properties. Can anybody explain why I'm getting this error?
Just going from
Code:
Me.sublist.LinkMasterFields = "Product,Code Set"
Me.sublist.LinkChildFields = "Product,Code Set"
to...
Code:
Me.sublist.LinkMasterFields = "Product"
Me.sublist.LinkChildFields = "Product"