Previous studies have shown that the carpal tunnel syndrome seems to occur more frequently in patients with diabetes mellitus and might be associated with the duration of diabetes mellitus, microvascular complications and degree of glycaemic control. Primary aim was to determine if type 2 diabetes can be identified as a risk factor for carpal tunnel syndrome after adjusting for possible confounders. Furthermore, the influence of duration of diabetes mellitus, microvascular complications and glycaemic control on the development of carpal tunnel syndrome was investigated