An approach by using near-infrared diffuse reflectance spectroscopy and resin adsorption for the determination of copper, cobalt and nickel ions in dilute solution.