|
本帖最后由 hljthzbc 于 2010-9-10 09:07 编辑
可惜我不会改呀
' 示 例: 子窗体记录分页显示
' 作 者: t小雨(tcl013@126.com)
' 日 期: 2009-07-23
Private Sub TxtPageRecCount_AfterUpdate()
Dim i As Integer
If Nz(Me.TxtPageRecCount) = "" Then
Me.TxtPageRecCount = 1
ElseIf Me.TxtPageRecCount < 1 Then
Me.TxtPageRecCount = 1
ElseIf Me.TxtPageRecCount > 100 Then
Me.TxtPageRecCount = 100
End If
i = Me.CmbPageCount.ListIndex
Me.CmbPageCount.RowSource = CreatePageString(rst, Me.TxtPageRecCount)
If i >= Me.CmbPageCount.ListCount Then i = Me.CmbPageCount.ListCount - 1
Me.CmbPageCount = Me.CmbPageCount.ItemData(i)
CmbPageCount_AfterUpdate
End Sub
页码组合框
Private Sub CmbPageCount_AfterUpdate()
Me.订单_浏览.Form.Painting = False
ChangeRstPage Me.订单_浏览.Form, rst, "订单ID", Me.TxtPageRecCount, Me.CmbPageCount.ListIndex + 1
Me.订单_浏览.Form.Painting = True
End Sub
|
|