How to set date period at runtime from VB6 (Eg.. 'Weekly' to 'Monthly'
Posted on 2003-11-13
I am trying to adjust the date range or period of a group in a crystal report at run time.
I am using a .RPT file, saved without the data, as a template. I was able to figure out how to adjust the date scope of the whole report but now I want to be able to have the user adjust the summary period interval at run time - say from weekly to monthly.
I am sure this has been addressed before so If someone can provide a link to the answer and it works for me that wwould be great.
I am doing this in VB6 and Crystal Reports 8.5
I explored a bit and found a collection, ReportObject.GroupNameFields, the 'name' property had the word 'weekly' at the end of a string but I do not know if I just need to replace that part of the string or are there more factors than just this property?
Thanks in advance for any help,