原帖由 cuxun 于 2007-9-21 10:56 发表
为什么要这么复杂呀:就一句话就行了呀:
Private Sub 查询_Click()
Me.子窗体.Form.RecordSource = "select top " & Me.最后几条 & " * from 表1 where 货号='" & Me.货号 & "' ORDER BY ID DESC;"
End Sub
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |