|

March 23rd, 2009, 07:32 AM
|
|
Authorized User
|
|
Join Date: Nov 2007
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
migrating to vb.net and grouping report data.
Hi, Im using VB.NET, migrating vb6 app to .net.
Have a form of drop downs, dates etc, they are all used to pass info to a crystal reporting selection formula, I also want to sort based on an option button selected, each value represent a group on the crystal report.
Previously in VB 6 it was done like this:
'Sorts
If OptSort1.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{table.PRODUCT};AnyChange;A"
ElseIf OptSort2.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.PRODUCT_NO};AnyChange;A"
ElseIf OptSort3.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.SEASON};AnyChange;A"
ElseIf OptSort4.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.SALES};AnyChange;D"
ElseIf OptSort5.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.UNITS};AnyChange;D"
End If
Any ideas how I can do the exact same in VB.NET?
__________________
Thank You
|