Ham is the #1 trigger of an attack of pancreatitis! Yorkies are prone to pancreatitis so sometimes the tiniest piece of ham can trigger an attack. Emergency vets see lots of cases on holidays.
Here is some information for you. If he shows any of these symptoms, you need to get him to an ER vet quickly:
Pancreatitis (Inflammation) in Dogs