以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]请教怎么模糊查询后分页加载呀  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=78700)

--  作者:colahou
--  发布时间:2015/12/15 11:59:00
--  [求助]请教怎么模糊查询后分页加载呀
Dim txt As String = e.Form.Controls("xmcxnr_mhcx").Text
Dim tbl As Table = Tables("项目查询_项目信息")
If txt = "" Then
    tbl.Filter = ""
Else
    txt = "\'%" & txt & "%\'"
    tbl.Filter = "AAA Like " & txt & " Or BBB Like " & txt & " Or CCC Like " & txt
   End If

之后怎么分页加载呀,就是怎么跟分页代码关联
With Tables("项目查询_项目信息").DataTable
    .loadFilter = " " 
    .LoadTop =10
    .LoadPage =0
    .LoadReverse = True
    .Load()
Forms("项目查询").Controls("共几页").Value = 1 & "/" & .TotalPages

才疏学浅,望指教



--  作者:大红袍
--  发布时间:2015/12/15 12:19:00
--  

Dim txt As String = e.Form.Controls("xmcxnr_mhcx").Text
If txt > "" Then
    txt = "\'%" & txt & "%\'"
    txt = "AAA Like " & txt & " Or BBB Like " & txt & " Or CCC Like " & txt
End If

With Tables("项目查询_项目信息").DataTable
    .loadFilter = txt
    .LoadTop =10
    .LoadPage =0
    .LoadReverse = True
    .Load()
    Forms("项目查询").Controls("共几页").Value = 1 & "/" & .TotalPages
End With


--  作者:colahou
--  发布时间:2015/12/15 12:25:00
--  
感谢超版,麻烦再教下,我想不在textbox直接查询,想通过按钮实现,这个按钮的代码应该怎么写
--  作者:colahou
--  发布时间:2015/12/15 12:55:00
--  
问了个愚蠢的问题,呵呵,已经会了,不麻烦了,谢谢