Selective impairment of CFTR-dependent bicarbonate transport, even in the presence of residual chloride conductance, is strongly associated with exocrine pancreatic insufficiency, recurrent pancreatitis and cystic-fibrosis-related diabetes. Here, CFTR is linked to cystic fibrosis-related diabetes.