Could you recommend tablet for swelling in legs due to diabetes?

Many possibilities. Some causes of swelling of the legs can include systemic problems such as hypertension, and problems with the kidneys and localized issues such as arthritis, infection, lymphatic obstruction, blood clots, varicose veins, trauma (fracture, sprain, tendonitis) and side effects to medication. Have it evaluated by a professional and get the appropriate treatment.
See doctor asap. And have them evaluate them. Need a diagnosis in order to get proper treatment.