sultan123:
From your code, it appears that you're using CPEAUT32.DLL. You don't show how you've declared the variables, nor do you show the error message you get on the line that fails, so it makes it hard to determine what your issue is. The code below works with the CR 8 CPEAUT32.DLL and should get you in the ballpark:
--------------------------------------------
Dim crwApplication As CRPEAuto.Application
Dim CRWReport As CRPEAuto.Report
Private Sub Form_Load()
Dim crwDB As CRPEAuto.Database
Dim crwTable As CRPEAuto.DatabaseTable
Set crwApplication = CreateObject("Crystal.CRPE.Application"

Set CRWReport = crwApplication.OpenReport("C:\Program Files\Microsoft Visual Studio\VB98\Archived Apps\Report Integration Cert\Customer Profile.rpt"
Set crwDB = CRWReport.Database
Dim crTable As CRPEAuto.DatabaseTable
Dim crField As CRPEAuto.DatabaseFieldDefinition
Set crTable = crwDB.Tables("Employee"

Set crField = crTable.Fields("Employee ID"
CRWReport.AddGroup 1, crField, crGCAnyValue, crAscendingOrder