G
Guest
I know there is a ton of information out there about writing multiple IIf
statements, but I cannot write this statement correctly:
=Sum(IIf([ISSUEDTIME] Between #7:01:00 AM# And #3:00:00
PM#,((IIf([TRANSTYPE]="IC",[EXTENDEDCOST])-(IIf([TRANSTYPE="IR",[EXTENDEDCOST])
This is an IIf statement that I am writing within the Control Source of a
text box on a form. Basically, there are three fields in this statement. I
am trying to say that if the following criteria are met, to display a summed
total.
Criteria 1: The issued time needs to be between 7:01 AM and 3:00 PM.
Criteria 2: Take the summed value of the extended costs for each record that
has an IC and subtract them from the summed extended cost of all records that
have an IR in the TRANSTYPE field. Please, somebody help me. Thanks in
advance
statements, but I cannot write this statement correctly:
=Sum(IIf([ISSUEDTIME] Between #7:01:00 AM# And #3:00:00
PM#,((IIf([TRANSTYPE]="IC",[EXTENDEDCOST])-(IIf([TRANSTYPE="IR",[EXTENDEDCOST])
This is an IIf statement that I am writing within the Control Source of a
text box on a form. Basically, there are three fields in this statement. I
am trying to say that if the following criteria are met, to display a summed
total.
Criteria 1: The issued time needs to be between 7:01 AM and 3:00 PM.
Criteria 2: Take the summed value of the extended costs for each record that
has an IC and subtract them from the summed extended cost of all records that
have an IR in the TRANSTYPE field. Please, somebody help me. Thanks in
advance
