A
AimeeK via AccessMonster.com
Hi, I'm trying to make a query performed a calculated based the Week Number
for each record...basically if the Week Number is this number, divide by this
number. If the Week Number is that number, divide by that number.
Unfortunately, I have 10 different Week Numbers, and I have to divide a
different number for each week.
For example:
If Week = 1, Max Cases/10
If Week = 2, Max Cases/9
If Week =3, Max Cases/8
etc, etc
However, when I tried nesting all 10 iif statements together in the query
expression builder, it cut off my last 2 calculations, so obviously, I
exceeded the limit. I've read about a Switch or Choose function, but I have
no idea how to do either one? Can anyone help? Thanks in advance for your
help.
for each record...basically if the Week Number is this number, divide by this
number. If the Week Number is that number, divide by that number.
Unfortunately, I have 10 different Week Numbers, and I have to divide a
different number for each week.
For example:
If Week = 1, Max Cases/10
If Week = 2, Max Cases/9
If Week =3, Max Cases/8
etc, etc
However, when I tried nesting all 10 iif statements together in the query
expression builder, it cut off my last 2 calculations, so obviously, I
exceeded the limit. I've read about a Switch or Choose function, but I have
no idea how to do either one? Can anyone help? Thanks in advance for your
help.