# 如何通過索引值查找字典的鍵？

If rs.Fields("NM").Value = dictNM.key(0)


Compile error: Invalid use of property


## 最佳答案

dictNM.Keys(0)


Edit:
One thing to keep in mind is that the order of the keys is unspecified, see MSDN