There is no big risk factor in developing pancreatic cancer. There are a lot of factors that can make it slightly more likely, two of which are smoking and obesity. Chronic pancreatitis, which I and some other members suffer from, increases the chance by around 4%, but the absolute risk is small.
The risk from diabetes is the same as the rest of the population. There are around 10,000 new cases every year. That’s about 3% of any cancer diagnosis. Given the 4.5m cases of T2 diabetes there are bound to be some T2 diabetics who get it, but it’s nowt to do with the diabetes, it’s just statistics. For the same reasons, folk with brown eyes are 9 times more likely to develop pancreatic cancer, but that’s only because 10% or so of the population have blue eyes.
For further reassurance, this has actually been looked at by scientists, and they haven’t been able to demonstrate any link.