Hi All
I am having trouble adding criteria to a query. I need the criteria to change based a drop down box found in a form "fmReportXIRR." If "In Progress" is selected then I want the query to produce a list of all dates greater then the DLOOKUP value, and if not then I want the query to return the value of the DLLOKUP and anything less than it. I hope this make sence. The whole thing works if I take the ">" and "<=" out of the criteria, but obviously it will not produce the desired results. Clearly the symboles are the the porblem and I dont know how to fix it. Any help would be greatly appreaciated.
Thank you
I am having trouble adding criteria to a query. I need the criteria to change based a drop down box found in a form "fmReportXIRR." If "In Progress" is selected then I want the query to produce a list of all dates greater then the DLOOKUP value, and if not then I want the query to return the value of the DLLOKUP and anything less than it. I hope this make sence. The whole thing works if I take the ">" and "<=" out of the criteria, but obviously it will not produce the desired results. Clearly the symboles are the the porblem and I dont know how to fix it. Any help would be greatly appreaciated.
Code:
![fmReportXIRR]![Combo134]="in Progress",>DLookUp("[maxofReportingPeriod]","[qrIRRReportingMaxDate]"),<=DLookUp("[maxofReportingPeriod]","[qrIRRReportingMaxDate]"))]
Thank you