Crystal 8.5, VB 6
I'm trying to add a group to a report in VB using the RDC.
This works perfectly ...
myReport.AddGroup 0, myReport.Database.Tables(1).Fields(10), crGCAnyValue, crAscendingOrder
myReport.Sections.Item("GF".NewPageAfter = True
myReport.Sections.Item("GF".ResetPageNumberAfter = True
However, what I really want to do is base the group on a formula (in this case, the first character of the field in question--not the entire field). I cannot find any syntax that allows you to add a group based on a formula, as opposed to a field. Is this possible?
Or is my best approach to build the report *with* the group, and then remove the group when it's not necessary, as opposed to adding it when it is necessary?
Any help would be appreciated.
Thanks!
Elky Langer
I'm trying to add a group to a report in VB using the RDC.
This works perfectly ...
myReport.AddGroup 0, myReport.Database.Tables(1).Fields(10), crGCAnyValue, crAscendingOrder
myReport.Sections.Item("GF".NewPageAfter = True
myReport.Sections.Item("GF".ResetPageNumberAfter = True
However, what I really want to do is base the group on a formula (in this case, the first character of the field in question--not the entire field). I cannot find any syntax that allows you to add a group based on a formula, as opposed to a field. Is this possible?
Or is my best approach to build the report *with* the group, and then remove the group when it's not necessary, as opposed to adding it when it is necessary?
Any help would be appreciated.
Thanks!
Elky Langer