My main table contains a date field e.g. 01/07/01 for record for the entire year. How do you create monthly totals in Paradox? Does Paradox have a Month function like Access?
If the date values are field names (I use these for annual sales files) then you can find the field number of the week you are looking for, then use the range of fields to calculate a sum for the month. I think you have the first case, so I won't go into this unless you need it. Let us know.
If the date values are field names (I use these for annual sales files) then you can find the field number of the week you are looking for, then use the range of fields to calculate a sum for the month. I think you have the first case, so I won't go into this unless you need it. Let us know.
If you want a range of dates, then set up a table with a structure like
Sort N*
Name A10
StartDate D
EndDate D
Sort will keep things in the right order!
Name will be like Jan01, Feb01 etc.
StartDate will be 1.1.2001, 1.2.2001
EndDate will be 1.2.2001, 1.3.2001
(end is the first of the following month, so you do not have to remember the number of days in each month, look for less than this date).
then link in the query to this table with
Date in data table >=_start, <_end
and in the range table
StartDate = _start
EndDate = _date
You can then do you calc sum for many months in one go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.