J
John Harrington
I have a query like:
SELECT tbl1.fiel, tbl1.field
FROM ((tbl1
LEFT JOIN tbl3 ON tbl1.coID = tbl3.ID)
LEFT JOIN tbl2 ON tbl1.field= tbl2.field)
LEFT JOIN tbl4 ON tbl3.ID = tbl4.field
WHERE ((tbl4.field) Is Null)
I would like to do the following.
When Forms!Form1.checkbox is checked,
then the WHERE clause is applied
When Forms!Form1.checkbox is NOT checked,
then there is no WHERE restriction
How do I rewrite the SQL to do that?
Thank you,
John
SELECT tbl1.fiel, tbl1.field
FROM ((tbl1
LEFT JOIN tbl3 ON tbl1.coID = tbl3.ID)
LEFT JOIN tbl2 ON tbl1.field= tbl2.field)
LEFT JOIN tbl4 ON tbl3.ID = tbl4.field
WHERE ((tbl4.field) Is Null)
I would like to do the following.
When Forms!Form1.checkbox is checked,
then the WHERE clause is applied
When Forms!Form1.checkbox is NOT checked,
then there is no WHERE restriction
How do I rewrite the SQL to do that?
Thank you,
John