C
Cpac
Hello,
I am trying to build a query which calls a vba function to define
output fields. My table has columns for each month - i.e. field name
M1, M2, M3 -> M12
I would like to pass a function variable based on the current month -
i.e. 7 = July
Once the function receives the month number, it determines how to
structure the query. I was planning to use a case statement with the
following logic:
Case = 7
place code to add M1+M2+M3+M4+M5+M6+M7
Can someone please let me know how to build the function and call it
from a query.
Thanks
I am trying to build a query which calls a vba function to define
output fields. My table has columns for each month - i.e. field name
M1, M2, M3 -> M12
I would like to pass a function variable based on the current month -
i.e. 7 = July
Once the function receives the month number, it determines how to
structure the query. I was planning to use a case statement with the
following logic:
Case = 7
place code to add M1+M2+M3+M4+M5+M6+M7
Can someone please let me know how to build the function and call it
from a query.
Thanks