Its a coshh assessment database I've been working on for a while... this particular bit checks if you have already done an assessment for the PPE (Personal protective equipment) then based on code will open exising or create new record.
Sorry didn't trim it down but just thought the general...