I’m trying to use the IIF() function in the following statement: Void: IIf([Invoice]![FCO]=”No”,””,”Void”). Actually, that was a test statement to see if it would work. Nothing I’ve tried with that function works. I really wanted the iff() function to read like this in a query: Void: IIf([Invoice]![FCO]=”No”,[Tot_Inv],[Tot_Inv]*-1). The Tot_Inv value is a computed value in the query that sums up the individual elements of an invoice. The intent is that if FCO=”Yes”, the invoice has been voided and multiplying the total invoice value by -1 will result in a negative invoice value that will be subtracted from a listing of monthly reports in a report. Either express above results in “#Error” (sans quotes).
I really don’t see this as that difficult, but I’m missing something. I don’t think it is a reference since VBA routines in other parts of the application are working fine. Can anybody offer a suggestion as to what I or Access is doing/not doing right?
Thanks,
Bill Blazer