J
J. Keggerlord
Is there a "cleaner" way to create this code? I have a pretty heinous
looking DSUM code that is encountering the same problem (multi-criteria
screening before calculating value). I tried to group the screened values of
PrefixBasic using parenthesis before adding the 'And' criteria for
Disposition. Obviously, this confused the Iif and Count function. Anyone
who can make this a little neater gets a smiley emoticon and my thanks! (Hard
breaks inserted for code clarity)
=(Count(IIf([tblTools!PrefixBasic]="Final" And tblTools! Disposition="New
Tool" Or
[tblTools!PrefixBasic]="OH" And tblTools!Disposition="New Tool" Or
[tblTools!PrefixBasic]="Platform" And tblTools!Disposition="New Tool" Or
[tblTools!PrefixBasic]="Mech" And tblTools!Disposition="New Tool",1,Null)))
*** The purpose of the function is to find all of the "Final", "OH",
"Platform" and "Mech" tools that are also dispositioned as "New Tool" and
then count them.
looking DSUM code that is encountering the same problem (multi-criteria
screening before calculating value). I tried to group the screened values of
PrefixBasic using parenthesis before adding the 'And' criteria for
Disposition. Obviously, this confused the Iif and Count function. Anyone
who can make this a little neater gets a smiley emoticon and my thanks! (Hard
breaks inserted for code clarity)
=(Count(IIf([tblTools!PrefixBasic]="Final" And tblTools! Disposition="New
Tool" Or
[tblTools!PrefixBasic]="OH" And tblTools!Disposition="New Tool" Or
[tblTools!PrefixBasic]="Platform" And tblTools!Disposition="New Tool" Or
[tblTools!PrefixBasic]="Mech" And tblTools!Disposition="New Tool",1,Null)))
*** The purpose of the function is to find all of the "Final", "OH",
"Platform" and "Mech" tools that are also dispositioned as "New Tool" and
then count them.