A
AGD
I have a report based on a select query. I've added a column in the report
to add information into the report based on whether or not two values within
the query are equal. The following code is in the unbound text box of my
report (created using expression builder).
=IIf(MG8!Cust_First_Order_Date_Time=MG8!OrdFlow_Actual_End,"1","0")
When trying to run the report I get the "Enter Parameter Value" window
requesting a parameter of MG8. Entering any or no parameter returns my
report with "1" in all rows (which is not correct based on review of data).
Here's what I've tried/done:
1. variations on the code's syntax but to no avail. (ie.
=IIf(([MG8]![Cust_First_Order_Date_Time]=[MG8]![OrdFlow_Actual_End],"1","0")
2. "masking" the field name within the query (ie. FO: Cust_First_Order_Date)
to get rid of possible "Date" confusion
3. text box in report is uniquely titled to avoid conflict
Here's what I'd like:
A. The reason it's not working
B. Help in writing the correct formula
Thanks in advance
to add information into the report based on whether or not two values within
the query are equal. The following code is in the unbound text box of my
report (created using expression builder).
=IIf(MG8!Cust_First_Order_Date_Time=MG8!OrdFlow_Actual_End,"1","0")
When trying to run the report I get the "Enter Parameter Value" window
requesting a parameter of MG8. Entering any or no parameter returns my
report with "1" in all rows (which is not correct based on review of data).
Here's what I've tried/done:
1. variations on the code's syntax but to no avail. (ie.
=IIf(([MG8]![Cust_First_Order_Date_Time]=[MG8]![OrdFlow_Actual_End],"1","0")
2. "masking" the field name within the query (ie. FO: Cust_First_Order_Date)
to get rid of possible "Date" confusion
3. text box in report is uniquely titled to avoid conflict
Here's what I'd like:
A. The reason it's not working
B. Help in writing the correct formula
Thanks in advance