D
dkliment
I have a main form that has a field called the state_number as a unique
key. I then have a tab control that contains four sub forms and they
also have a state_number on each form. I have it setup for a one to
many relationship. My goal is to be able to search on the main form in
any field and bring up related records in both the main form and
subform. Example, search for a name on the main forma and bring up all
records with the same name in the main form and related records based
on the state_number in the sub forms. I would also like to go the
other way. I would like to search a field on any sub form and bring up
all related records for that field on the sub form and on the main
form. Example, look for a certain color in a field and filter for all
records with that color on the sub form and have the related records on
the main form only. All this filtering could be done on multiple
fields on the forms. A realistic example would be to search on the sub
form jewelry for a gold (field 1) women's (field 2) ring (field3).
These fields could be check boxes or text boxes. I would want to
search for the items entered and just bring back records on the sub
form pertaining to those three items and then on the main form bring
back the related records for those items. I have looked at the "filter
a form on a field in a subform" article but I am not sure this is
helping me. Any help would be appreciated or let me know if this is
not possible to do.
key. I then have a tab control that contains four sub forms and they
also have a state_number on each form. I have it setup for a one to
many relationship. My goal is to be able to search on the main form in
any field and bring up related records in both the main form and
subform. Example, search for a name on the main forma and bring up all
records with the same name in the main form and related records based
on the state_number in the sub forms. I would also like to go the
other way. I would like to search a field on any sub form and bring up
all related records for that field on the sub form and on the main
form. Example, look for a certain color in a field and filter for all
records with that color on the sub form and have the related records on
the main form only. All this filtering could be done on multiple
fields on the forms. A realistic example would be to search on the sub
form jewelry for a gold (field 1) women's (field 2) ring (field3).
These fields could be check boxes or text boxes. I would want to
search for the items entered and just bring back records on the sub
form pertaining to those three items and then on the main form bring
back the related records for those items. I have looked at the "filter
a form on a field in a subform" article but I am not sure this is
helping me. Any help would be appreciated or let me know if this is
not possible to do.