HI How can I to change sort field in runtime ? I am using CRAXDRT Tks
Try something like this... VB Code: Dim crFormulaField As CRAXDRT.FormulaFieldDefinition Dim crApp As CRAXDRT.Application Dim crReport As CRAXDRT.Report Set crApp = New CRAXDRT.Application Set crReport = crApp.OpenReport("your report here") ' ' Set the field to sort by ' Set crFormulaField = crReport.FormulaFields.GetItemByName("name of the field to sort by") crReport.RecordSortFields.Add crFormulaField, crAscendingOrder
Dim crFormulaField As CRAXDRT.FormulaFieldDefinition Dim crApp As CRAXDRT.Application Dim crReport As CRAXDRT.Report Set crApp = New CRAXDRT.Application Set crReport = crApp.OpenReport("your report here") ' ' Set the field to sort by ' Set crFormulaField = crReport.FormulaFields.GetItemByName("name of the field to sort by") crReport.RecordSortFields.Add crFormulaField, crAscendingOrder
Pete No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
Forum Rules