Hi Sara, Unfortunately if the accidents have been sloppy then the subfloor may well have absorbed the odour and will keep coming through the carpet. After years of struggling with this problem I yanked all the carpets out and sealed the subfloor with varathane in the living room, nearly died with those fumes so the other floors were painted with latex floor paint, then we installed Pergo. I have carpet in two bedrooms and use Liquid Tide or Liquid Cheer to clean those with my carpet shampooer (heavy duty model) and that works well enough.
Rose T.