i've got a table, [datalist] that contains four fields called, [witness_1],[witness_2],[witness_3],[witness_4].
I've also got a table called [witnesses] that only has one field called [witness] which is simply a list of all witnesses.
I've got a form called [frmrunreports] that currently has four combo boxes called, [witness_1],[witness_2],[witness_3],[witness_4] with each row source being the [witness] field in the [witnesses] table.
Here's the goal: I want to be able to select 1, 2, 3, or 4 witness on the form and generate the report to only display entries with that combination of witnesses. problem is, the witnesses won't necessarily be in the same order as the form, I.E. [datalist]![witness_1] won't neccessarily match up with [frmrunreports]![witness_1]. how do i accomplish this kind of filtering when the order doesn't matter - the records should come if one record has "john" in the witness_1 field and "sam" in the witness_2 field and another record has "sam" in the witness_1 field and "john" in the witness_2 field.
I'm running xp with access 2003. i don't kow basic (i've been teaching myself access) so go easy on me.
Thanks!
-Mitchell
I've also got a table called [witnesses] that only has one field called [witness] which is simply a list of all witnesses.
I've got a form called [frmrunreports] that currently has four combo boxes called, [witness_1],[witness_2],[witness_3],[witness_4] with each row source being the [witness] field in the [witnesses] table.
Here's the goal: I want to be able to select 1, 2, 3, or 4 witness on the form and generate the report to only display entries with that combination of witnesses. problem is, the witnesses won't necessarily be in the same order as the form, I.E. [datalist]![witness_1] won't neccessarily match up with [frmrunreports]![witness_1]. how do i accomplish this kind of filtering when the order doesn't matter - the records should come if one record has "john" in the witness_1 field and "sam" in the witness_2 field and another record has "sam" in the witness_1 field and "john" in the witness_2 field.
I'm running xp with access 2003. i don't kow basic (i've been teaching myself access) so go easy on me.
Thanks!
-Mitchell