If e.Node.Level = 2 Then '如果单击的是第二层节点
Dim ps() As String = e.Node.FullPath.Split("\")
Dim tr As Row = Tables("通讯录").Current
Dim dr As DataRow = DataTables("行政区域").Find("省辖市 = '" & ps(0) & "' And 地级市 = '" & ps(1) & "' And 区县市 = '" & ps(2) & "'")
If dr IsNot Nothing Then '如果在行政区域表找到对应的行,则将此行的值写入通讯录表的当前行.
tr("基本信息_省辖市") = dr("省辖市")
tr("基本信息_地级市") = dr("地级市")
tr("基本信息_区县市") = dr("区县市")
tr("基本信息_街道社区") = dr("街道")
tr("个人电子信息_区号") = dr("区号")
tr("个人电子信息_邮编") = dr("邮编")
e.Form.DropDownBox.Value = tr("基本信息_街道社区")
End If
e.Form.DropDownBox.CloseDropdown()
End If