Hi Miriam,
The easiest way to create an 'aging' inquiry in GridView on the A/R Transactions file is to first create a calculated column that determines the number of days 'aged' (by document date) or 'overdue' (by due date) and then use that for your Current/30/60/90 columns. For the Due date, the formula 'Days Overdue' would be: Today() - {Due date} You can change the value of 'Today' by editing the Run Date, so that you can age as of a desired date.
Instead of Today(), you could also use the 'As of' querydate result.
Then create your aging columns as you would expect:
Current: IF({Days overdue} <=0, {Current amount} , 0)
1-30: IF( AND(Days overdue >0, {Days overdue} <= 30) , {Current amount} , 0)
and so on.
This inquiry against the aged Due Date will match the results of the Overdue Receivables report.
Note that it will not match the Aged Trial Balance report because that report ages against the Docuemnt Date, and also there is a possibility that the report date could be backdated earlier than the last purge date, meaning historical transactions could be listed on the report - and not your GridVew inquiry.
_________________________
Regards,
Softrak Tech Support