This works great:
=IIf([HasData],IIf([ESY MATH]="-1","Y") & IIf([ESY MATH]="",""))
This line just puts a Y if there is a -1 in the ESY MATH
field and nothing if there is not.
However, this does not work - I get the data type mismatch in criterial expression #3464:
=IIf([HasData],IIf([ESY LANG]="-1","Y") & IIf([ESY LANG]="",""))
I have experimented extensively - I only get the error when I include this field. And I only get the error when there is at least one -1 in the field. If there is nothing or a 0 in all the ESY LANG field, it works fine. I have even deleted this field in the underlying table and recreated it by copying the ESY MATH column and double checking that all properties are identical. I have also tried switching the type from text to a check box to no avail. This is happening in a report. I have a built in query which checks all fields which has criteria of Like "-1". This is working for the the other ESY fields (they are different Extended School Year subjects - (summer school)).
Any help would be greatly appreciated!.
=IIf([HasData],IIf([ESY MATH]="-1","Y") & IIf([ESY MATH]="",""))
This line just puts a Y if there is a -1 in the ESY MATH
field and nothing if there is not.
However, this does not work - I get the data type mismatch in criterial expression #3464:
=IIf([HasData],IIf([ESY LANG]="-1","Y") & IIf([ESY LANG]="",""))
I have experimented extensively - I only get the error when I include this field. And I only get the error when there is at least one -1 in the field. If there is nothing or a 0 in all the ESY LANG field, it works fine. I have even deleted this field in the underlying table and recreated it by copying the ESY MATH column and double checking that all properties are identical. I have also tried switching the type from text to a check box to no avail. This is happening in a report. I have a built in query which checks all fields which has criteria of Like "-1". This is working for the the other ESY fields (they are different Extended School Year subjects - (summer school)).
Any help would be greatly appreciated!.