Optimizing Crystal Reports
By Richard Campbell
Dr. Dobb's Sourcebook March/April 1997
Sub RepGen (By Val RepName As String) Select Case RepName Case "Inventory Status Report" GenerateInvStatData DoCrystalReport "INVSUMM" ' Other cases for other ' reports go in here End Select End Sub
Example 1: The DoCrystalReport subroutine.