I have to put in 15 nested IIF statements in a query and I know the maximum is 7.
I have an idea about creating a VBA module but not sure of the VBA code and type of module that needs to be created and how it will work in conjunction with the query.
I created an alias field in the query called Category and the IIF statements are:
Category: IIF([Group] =’’100” and [DO] <>””,”Support”, IIF([Group]=”300” and [DO] =”440”,” Support”, IIF([Group]="700" and [DO]<>"","Support","Prod"))).
I have 12 sets of criteria to enter and know there is a max of 7 IIF statements.
Any help is appreciated.
Regards
Gene