Foxtable(狐表)用户栏目专家坐堂 → 根据城市或乡镇自动填写省份


  共有5806人关注过本帖树形打印复制链接

主题:根据城市或乡镇自动填写省份

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:112372 积分:572122 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/6/13 21:50:00 [显示全部帖子]

参考:http://www.foxtable.com/webhelp/topics/1451.htm,根据到行政区域表,根据城市查省份即可

If e.DataCol.Name = "城市" Then 
    If e.NewValue Isnot Nothing Then 
        Dim
 dr As DataRow
        dr = 
DataTables("
行政区域").Find("[城市] = '" & e.NewValue & "'")
        If
 dr IsNot Nothing Then
            e.
DataRow("
省份") = dr("省份")
        End
 If
    End
 If
End
 If

 回到顶部