Is it possible to include some kind of "If" processing when decided to use criteria. For example I have this query:
SELECT Contractors.Developer_ID, Contractors.Case_Prefix, Contractors.Case_Num, Contractors.Expense_ID, Contractors.Expense_Amount, Contractors.Expense_Date
FROM Contractors
WHERE (((Contractors.Expense_Date) Between [Forms]![Contractor Date Search]![Start_Date] And [Forms]![Contractor Date Search]![End Date]))
ORDER BY Contractors.Expense_Date;
Is there a way to exclude the WHERE clause if the Forms!Contractor Date Search!Start Date is null?
Hope that isn't too confusing.
SELECT Contractors.Developer_ID, Contractors.Case_Prefix, Contractors.Case_Num, Contractors.Expense_ID, Contractors.Expense_Amount, Contractors.Expense_Date
FROM Contractors
WHERE (((Contractors.Expense_Date) Between [Forms]![Contractor Date Search]![Start_Date] And [Forms]![Contractor Date Search]![End Date]))
ORDER BY Contractors.Expense_Date;
Is there a way to exclude the WHERE clause if the Forms!Contractor Date Search!Start Date is null?
Hope that isn't too confusing.