//Business Object public Company oCompany; public string ValidateCompanyUserIDExists(string CompanyUserID) { string Message = null; //Defined ds as a DataSet DataSet ds; //Erorr Line Below - this.oCompany is pasted below ds = this.oCompany.CheckIfCompanyUserIdExists(CompanyUserID); // if (int.Parse(ds.Tables["CompanyExists"].Rows[0].ToString()) != 0) { Message = "The Company User ID already exists in the database please selct another Company User ID"; this.AddErrorProviderBrokenRule(CompanyUserID,Message); } return Message; } //======================================== //======================================== // This.oCompany.CheckIfCompanyUserIdExists public DataSet CheckIfCompanyUserIdExists(string CompanyUserID) { // Get a reference to the data access object mmDataAccessBase dao = this.GetDataAccessObject(); // Create and configure two parameter objects IDbDataParameter sqlparCompanyUserID = dao.CreateParameter("@CompanyUserID",CompanyUserID); return this.GetDataSet("CheckIfCompanyUserIDExists","CompanyExists",this.DatabaseKey,CommandType.StoredProcedure,sqlparCompanyUserID); }