Foxtable(狐表)用户栏目专家坐堂 → 如何进行多列表项目查询输入


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

主题:如何进行多列表项目查询输入

帅哥哟,离线,有人找我吗?
czy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33951 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2009/1/12 16:35:00 [显示全部帖子]

帮助中抄的,查询表PrepareEdit事件。

If e.IsFocusCell Then
    If e.Col.Name = "县" Then
        If e.Row.IsNull("市") Then
            e.Col.Combolist = ""
        Else
            e.Col.Combolist = DataTables("联系人").GetComboListString("县", "[市] = '" & e.Row("市") & "'")
        End If
    End If
End If
If e.IsFocusCell Then
    If e.Col.Name = "公司" Then
        If e.Row.IsNull("县") Then
            e.Col.Combolist = ""
        Else
            e.Col.Combolist = DataTables("联系人").GetComboListString("公司", "[县] = '" & e.Row("县") & "'")
        End If
    End If
End If
If e.IsFocusCell Then
    If e.Col.Name = "联系人" Then
        If e.Row.IsNull("公司") Then
            e.Col.Combolist = ""
        Else
            e.Col.Combolist = DataTables("联系人").GetComboListString("联系人", "[公司] = '" & e.Row("公司") & "'")
        End If
    End If
End If


项目属性,MainTableChanged事件。

If MainTable.Name = "查询"
   Tables("查询").Cols("市").Combolist = DataTables("联系人").GetComboListString("市")
End If

 


 回到顶部