What's the function of 到 in 今天的考试要用到词典?
到 is used as this sense defined in dictionaries:


  用在动词后，表示动作结果。
  Used after a verb, [it] expresses the result of an action.


It functions a resultative complement in your sentence.