Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a suppression condition to a group.

Status
Not open for further replies.

Tenloe

Programmer
Oct 21, 2005
40
US
I am writing an upgrade utility in VB so that people don't have to do all of the upgrade manually. I am on Crystal 11.

I have added this code for the group.

Private Sub AddOccGroup(objRpt As CRAXDRT.Report)

Dim strGroup As String
strGroup = "XXXPCLM.OCCURNUM"

objRpt.AddGroup 5, strGroup, crGCAnyValue, crAscendingOrder

I need to know how to add a suppression to the gourp that says {@OCCURRENCE} = 'N'

Does anyone know how I would do this? Can't quite find what I am looking for.
 
I don't know VB, but since no one else has answered, I'll try.

In Crystal, choose Reports > Selection Formulas > Group

A formula of {@OCCURRENCE} <> "N" should do what you want.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Yes, in Crystal that is correct, but I need to know how to do it from VB. It is so we can upgrade Crystal reports without the user having to change all of theirs manually.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top