O
Olden
My current database is made up of mostly 1 table and one 1 main query.
Here's an example of the main query:
foo: [table1]![field1]+[table1]![field2]+[and so forth]
bam: [table1]![field10]+[table1]![field12]+[and so forth]
bar: [table1]![field20]+[table1]![field22]+[and so forth]
I have a form with 3 Checkboxes (fooCHECKBOX,bamCHECKBOX,barCHECKBOX)
that writes Yes/No values to TableOfYesAndNo.
What I want is a query that does something along the line of:
If [TableOfYesAndNo]![fooCHECKBOXvalue]=Yes, Then have my query include
foo: [table1]![field1]+[table1]![field2]+[and so forth] if not just
discard foo from this query all together
If [TableOfYesAndNo]![bamCHECKBOXvalue]=Yes, Then have my query include
bam: [table1]![field10]+[table1]![field12]+[and so forth] if not just
discard bam from this query all together
If [TableOfYesAndNo]![barCHECKBOXvalue]=Yes, Then have my query include
bar: [table1]![field20]+[table1]![field22]+[and so forth] if not just
discard bar from this query all together
Hopefully you've done something similar and can help.
Thanks in advance,
Olden.
Here's an example of the main query:
foo: [table1]![field1]+[table1]![field2]+[and so forth]
bam: [table1]![field10]+[table1]![field12]+[and so forth]
bar: [table1]![field20]+[table1]![field22]+[and so forth]
I have a form with 3 Checkboxes (fooCHECKBOX,bamCHECKBOX,barCHECKBOX)
that writes Yes/No values to TableOfYesAndNo.
What I want is a query that does something along the line of:
If [TableOfYesAndNo]![fooCHECKBOXvalue]=Yes, Then have my query include
foo: [table1]![field1]+[table1]![field2]+[and so forth] if not just
discard foo from this query all together
If [TableOfYesAndNo]![bamCHECKBOXvalue]=Yes, Then have my query include
bam: [table1]![field10]+[table1]![field12]+[and so forth] if not just
discard bam from this query all together
If [TableOfYesAndNo]![barCHECKBOXvalue]=Yes, Then have my query include
bar: [table1]![field20]+[table1]![field22]+[and so forth] if not just
discard bar from this query all together
Hopefully you've done something similar and can help.
Thanks in advance,
Olden.