Hi All.
I have a query and one of the fields is an expression that returns a number.
This number represents number of days between 2 dates and is called ExprDaysDiff
The query draws fields from many different tables and the Report on which its based already includes a first level of grouping by one of these fields.
I want to create a secondary group based on ExprDaysDiff, based on the following ranges...
0-42
43-366
367-1461
1461+
My search results so far have said to start with 'SELECT iif(...' which implies I need to write the query directly in SQL.
Its already quite complicated (for me) and Im not comfortable manually editting the SQL.
There is another result that uses a VBA function but its a poor tutorial as the screenshots arent backed up with the full expressions.
Anyone able to help me please?
I have a query and one of the fields is an expression that returns a number.
This number represents number of days between 2 dates and is called ExprDaysDiff
The query draws fields from many different tables and the Report on which its based already includes a first level of grouping by one of these fields.
I want to create a secondary group based on ExprDaysDiff, based on the following ranges...
0-42
43-366
367-1461
1461+
My search results so far have said to start with 'SELECT iif(...' which implies I need to write the query directly in SQL.
Its already quite complicated (for me) and Im not comfortable manually editting the SQL.
There is another result that uses a VBA function but its a poor tutorial as the screenshots arent backed up with the full expressions.
Anyone able to help me please?