I followed the link and got so happy because I find that you are very familiar with persian calendar.
I will explain what i did till now. I created a table "Calendar" with two fields. 1-G_Date (date), 2-Sh_Date (Text)and made 365 records with equal date.
I also created another table "Production" included bellow fields:
Prod_date
Device_name
Prod_name
Prod_QTY
Prod_weight
Operator_name
I linked Prod_date to Sh_Date.
I need a script to make a annual report of any of fields in Production table while using Calendar table.
as you suggested, I have to create cMonth, but I don't know what should the calculation be and how to use any of Prod_date, G_date or Sh_Date.
kind regards