My database manages investigative cases. Once I open a case I would like it to show related cases based on last names.
Currently the main form has several subforms pulled from multiple tables. When I try to create a query that filters by the last name it brings up no results. I think this is because the subform it is referencing is a datasheet, has multiple LastName controls, and the first control it references is blank.
How do I get it to check the rest of the controls and bring up related cases?
Objects
Main Form: frmCaseMain
Subform1: sbfCaseLink
Subform2: sbfInvolvedParties
Control: LastName
This is the Criteria I used in my query:
Forms!frmCase.sbfInvolvedParties.Form!LastName
Currently the main form has several subforms pulled from multiple tables. When I try to create a query that filters by the last name it brings up no results. I think this is because the subform it is referencing is a datasheet, has multiple LastName controls, and the first control it references is blank.
How do I get it to check the rest of the controls and bring up related cases?
Objects
Main Form: frmCaseMain
Subform1: sbfCaseLink
Subform2: sbfInvolvedParties
Control: LastName
This is the Criteria I used in my query:
Forms!frmCase.sbfInvolvedParties.Form!LastName