$ 0 0 To get the current CompanyID: riparam("CpnyId") Most standard SL Crystal reports use this formula.