Ducklings will need 10mg of niacin a day. More if they are deficient. It will take not days but weeks for a duckling/duck to recover from niacin deficiency.
I want your little guy to make it. He can make it! Two main possibilities with a swollen leg/foot. It is often either a displaced tendon or due to some infection.